Comments (6)
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.
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.
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.
yeah, true it's not a big problem. At first I thought it was breaking the build but not the case. : )
from assetgraph-builder.
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.
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)
- Dedupe source maps HOT 1
- RSS feed link gets updated wrong
- When browsers list is not configured, look for it in package.json HOT 2
- Support .browserslistrc and browserslist key in package.json HOT 5
- Is it possible to wrap the built JS in a function to not expose define() ? HOT 4
- Throws when encountering Html Svg island with inline style HOT 1
- Generates invalid syntax from ES6 code HOT 4
- `node-zopfli` package seems no longer maintained HOT 5
- Ruby Sass is deprecated HOT 2
- Add `--preflight-check` cmdline option HOT 7
- `npm audit` complaints HOT 6
- Breaks await expression HOT 4
- Breaks relative ES6 module paths HOT 4
- ⚠ WARN: Cannot read property 'length' of null HOT 2
- [Q] CHANGELOG? HOT 4
- make assetgraph to not process svg HOT 2
- Translation not working HOT 1
- How to customize? HOT 3
- a vulnerability CVE-2020-7598 is introduced in assetgraph-builder
- Svgo is not a constructor HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assetgraph-builder.