Seeing the same thing:
WARNING in ./~/aframe/dist/aframe.js
Critical dependencies:
1:479-486 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./~/aframe/dist/aframe.js 1:479-486
Fix this by adding this into your webpack config under module:
module: {
noParse: [
/node_modules\/aframe\/dist\/aframe.js/, // for aframe from NPM
/node_modules\/cannon\/build\/cannon.js/, // for aframe-extras from NPM
],
loaders: [
// ... your loaders here ...
]
}
Thanks! I created a Stackoverflow question so hopefully this can get found later: http://stackoverflow.com/questions/39768099/how-to-ignore-seems-to-be-a-pre-built-javascript-file-try-to-require-the-orig/39768100#39768100
For those still seeing this error: Using the full absolute file path to the file aframe-master.js in your node_modules should work. For example:
noParse: [
'/node_modules/aframe/dist/aframe-master.js',
]
Tested on:
Most helpful comment
Fix this by adding this into your webpack config under
module: