You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then node build (i.e. basically a clone of your build script) would throw the following error:
ERROR: Cannot find module '../lib/lib.js'
Error: Error: Module "jshint" not found in context "<project root>\src"
Error: <project root>\node_modules\webpack\buildin\jshint-webpack-web-loader is not a directory
@ <project root>\src\main.js (line 8, column 14)
This sample works if lib.js is moved to src and the import in main.js is changed accordingly. By the way, it does not matter if require or enhanced-require is used.
Best regards,
miffels
The text was updated successfully, but these errors were encountered:
check the build script... You applied a post loader for any file in lib (postLoaders). You want to post load the files with jshint-loader, but it's not npm installed.
Try npm install jshint-loader if you want to post load the files.
Hi sokra,
when I try to build the following setup
with
webpack 0.8.2
, wherelib.js
is some arbitrary library andmain.js
is as simple asthen
node build
(i.e. basically a clone of your build script) would throw the following error:This sample works if
lib.js
is moved tosrc
and the import inmain.js
is changed accordingly. By the way, it does not matter ifrequire
orenhanced-require
is used.Best regards,
miffels
The text was updated successfully, but these errors were encountered: