Git Product home page Git Product logo

Comments (6)

mreinstein avatar mreinstein commented on September 25, 2024

I'm thinking this is probably caused by another script which relies on backbone and underscore. I'm including a script called backbone-deepmodel, which has this at the top:

/*jshint expr:true eqnull:true */
/**
 *
 * Improves Backbone Model support when nested attributes are used.
 * get() and set() can take paths e.g. 'user.name'
 *
 *
 */
;(function(factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD
        define(['underscore', 'backbone'], factory);
    } else {
        // globals
        factory(_, Backbone);
    }
}(function(_, Backbone) {

It's just a haunch but I have a feeling this particular loading strategy might be confusing assetgraph-builder

from assetgraph-builder.

Munter avatar Munter commented on September 25, 2024

I think your analysis is correct. Assetgraph is finding a requirejs relation to a non-existing file.
It seems we need to build in a check for requirejs's presence.

from assetgraph-builder.

papandreou avatar papandreou commented on September 25, 2024

At least the build is succeeding. I can't really think of anything that would silence this warning without also silencing warnings that the user really wants to know about. Require.js isn't the only AMD script loader.

from assetgraph-builder.

mreinstein avatar mreinstein commented on September 25, 2024

yeah, true it's not a big problem. At first I thought it was breaking the build but not the case. : )

from assetgraph-builder.

papandreou avatar papandreou commented on September 25, 2024

You can comment out the define(...) to silence the warning. Although I know it's annoying not being able to use that plugin as-is.

from assetgraph-builder.

Munter avatar Munter commented on September 25, 2024

This issue should be fixed as per assetgraph/assetgraph@cd534d9

Released in assetgraph v1.6.3
Released in assetgraph-builder v1.8.5

from assetgraph-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.