Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Prod #598

Closed
LapassetAlexis opened this issue May 17, 2016 · 3 comments
Closed

Build Prod #598

LapassetAlexis opened this issue May 17, 2016 · 3 comments

Comments

@LapassetAlexis
Copy link

LapassetAlexis commented May 17, 2016

Hello everyone,

i have an issue but whith build:prod :

ModuleNotFoundError: Module not found: Error: a dependency to an entry point is not allowed at ...\node_modules\webpack\lib\Compilation.js:254:7 at ...\node_modules\webpack\lib\NormalModuleFactory.js:58:13 at NormalModuleFactory.applyPluginsAsyncWaterfall (...\node_modules\tapable\lib\Tapable.js:75:69) at onDoneResolving (...\node_modules\webpack\lib\NormalModuleFactory.js:38:11) at onDoneResolving (...\node_modules\webpack\lib\NormalModuleFactory.js:121:6) at ...\node_modules\webpack\lib\NormalModuleFactory.js:116:7 at ...\node_modules\webpack\node_modules\async\lib\async.js:726:13 at ...\node_modules\webpack\node_modules\async\lib\async.js:52:16 at done (...\node_modules\webpack\node_modules\async\lib\async.js:246:17) at ...\node_modules\webpack\node_modules\async\lib\async.js:44:16 at ...\node_modules\webpack\node_modules\async\lib\async.js:723:17 at ...\node_modules\webpack\node_modules\async\lib\async.js:167:37 at ...\node_modules\webpack\node_modules\async\lib\async.js:52:16 at ...\node_modules\webpack\node_modules\async\lib\async.js:361:13 at ...\node_modules\webpack\node_modules\async\lib\async.js:52:16 at done (...\node_modules\webpack\node_modules\async\lib\async.js:246:17) at ...\node_modules\webpack\node_modules\async\lib\async.js:44:16 at ...\node_modules\webpack\node_modules\async\lib\async.js:358:17 at ...\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:29:4 at onResolved (...\node_modules\enhanced-resolve\lib\Resolver.js:39:10) at innerCallback (...\node_modules\enhanced-resolve\lib\Resolver.js:89:22) at loggingCallbackWrapper (...\node_modules\enhanced-resolve\lib\createInnerCallback.js:21:19) at ...\node_modules\tapable\lib\Tapable.js:134:6 at ...\node_modules\enhanced-resolve\lib\ModulesInDirectoriesPlugin.js:55:11 at ...\node_modules\enhanced-resolve\lib\Resolver.js:191:15 at Tapable.<anonymous> (...\node_modules\enhanced-resolve\lib\ModulesInDirectoriesPlugin.js:50:12) at Storage.finished (...\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:38:16) at FSReqWrap.oncomplete (fs.js:117:15)

Any idea ?

Thx!

@IAMtheIAM
Copy link

IAMtheIAM commented May 17, 2016

Which version of Node? I recommend NodeJS 4.4.4 LTS. First uninstall node and reinstall that version. Then try running task clean:install, and then try to build:prod

@valdemarrolfsen
Copy link

I have the same problem when running the 'npm run build:prod' command.

The part that fails is:

webpack --config config/webpack.prod.js --progress --profile --colors --display-error-details --display-cached --bail

Node version:
4.4.5

Npm version:
2.15.5

Stack trace:

build modulesModuleNotFoundError: Module not found: Error: a dependency to an entry point is not allowed
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/lib/Compilation.js:254:7
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/lib/NormalModuleFactory.js:58:13
at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/tapable/lib/Tapable.js:75:69)
at onDoneResolving (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/lib/NormalModuleFactory.js:38:11)
at onDoneResolving (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/lib/NormalModuleFactory.js:121:6)
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/lib/NormalModuleFactory.js:116:7
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:726:13
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:52:16
at done (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:246:17)
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:44:16
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:723:17
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:167:37
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:52:16
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:361:13
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:52:16
at done (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:246:17)
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:44:16
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/webpack/node_modules/async/lib/async.js:358:17
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:29:4
at onResolved (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/Resolver.js:39:10)
at innerCallback (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/Resolver.js:89:22)
at loggingCallbackWrapper (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/createInnerCallback.js:21:19)
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/tapable/lib/Tapable.js:134:6
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/ModulesInDirectoriesPlugin.js:55:11
at /Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/Resolver.js:191:15
at Tapable. (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/ModulesInDirectoriesPlugin.js:50:12)
at Storage.finished (/Users/valdemarrolfsen/Utvikling/Applikasjoner/moj-web/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)
at FSReqWrap.oncomplete (fs.js:82:15)

@valdemarrolfsen
Copy link

Sorry, the wrong version of node was not completely removed. Got it working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants