Static GitHub Issues

[2259] ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in '...'

prev: Internet Explorer 11 issue - Object.assign polyfill gets resetted
next: Transition broken with Dynamic routes

With the latest dev branch I cannot start nuxt. I guess it's related with my specific setup.. we have nuxt installed in a subfolder called "pwa". Therefore we instereted "srcDir" optoin in nuxt.config.js: srcDir: 'pwa/'

If i try to run or build it with the latest dev branch though, it results in errors like: ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in '...'

To solve it, I added to the nutx.config.js function "extend(config, { isDev, isClient, isServer }) {"

 // fix node_modules directory
 config.resolve.modules = config.resolveLoader.modules = [path.resolve(__dirname, "node_modules")];

then it works. Just in case someone needs this.. actually I think it is a bug, as this was not needed before (and is not really documented either).

Thanks Simon

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1980">#c1980</a>)</em></sub></div>