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

Error when building the Webpack DLL... #658

Closed
gabrielrtakeda opened this issue Jul 7, 2016 · 5 comments
Closed

Error when building the Webpack DLL... #658

gabrielrtakeda opened this issue Jul 7, 2016 · 5 comments
Labels

Comments

@gabrielrtakeda
Copy link

gabrielrtakeda commented Jul 7, 2016

When building webpack dll, occurs the error below:

npm run build:dll                                                                                                                                                                

> react-boilerplate@3.0.0 build:dll /Library/WebServer/Documents/htdocs/frontend.dev/react/react-boilerplate
> node ./internals/scripts/dependencies.js

Building the Webpack DLL...
/Library/WebServer/Documents/htdocs/frontend.dev/react/react-boilerplate/node_modules/babel-preset-es2015-webpack/index.js:35
    throw new Error('Cannot remove "babel-plugin-transform-es2015-modules-commonjs" from the plugin list.');
    ^

Error: Cannot remove "babel-plugin-transform-es2015-modules-commonjs" from the plugin list.
    at Object.<anonymous> (/Library/WebServer/Documents/htdocs/frontend.dev/react/react-boilerplate/node_modules/babel-preset-es2015-webpack/index.js:35:11)
    at Module._compile (module.js:425:26)
    at Module._extensions..js (module.js:432:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Library/WebServer/Documents/htdocs/frontend.dev/react/react-boilerplate/node_modules/babel-register/lib/node.js:166:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at /Library/WebServer/Documents/htdocs/frontend.dev/react/react-boilerplate/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:391:22
    at Array.map (native)

It seems to be an error produced by babel-preset-es2015-webpack module.
Resolved in this issue: gajus/babel-preset-es2015-webpack#10

Just run npm uninstall --save-dev babel-preset-es2015 and thats be ok.

Sorry for the bad English.

@mxstbr mxstbr added the bug label Jul 7, 2016
@mxstbr
Copy link
Member

mxstbr commented Jul 7, 2016

I thought we used babel-preset-es2015-webpack anyway?

@Antonhansel
Copy link

Antonhansel commented Jul 7, 2016

Same error here:
I've used the project a few times before, even last week without any issues.
Same issue now after a git clone and then a npm run setup.
Node: 5.0.0
Npm: 3.10.3

I've tried your solution @gabrielrtakeda but I cannot run npm run setup a second time of course, and npm install crashes again with the following error:

npm ERR! No compatible version found: eslint-plugin-import@1.10.1
npm ERR! Valid install targets:
npm ERR! 1.10.2, 1.10.0, 1.9.2, 1.9.1, 1.9.0, 1.8.1, 1.8.0, 1.7.0, 1.6.1, 1.6.0, 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 1.0.0-beta.0, 0.13.0, 0.12.1, 0.12.0, 0.11.0, 0.10.1, 0.10.0, 0.9.1, 0.8.1, 0.8.0, 0.7.9, 0.7.8, 0.7.7, 0.7.5, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.0, 0.5.2, 0.5.1, 0.4.5, 0.4.4, 0.4.3, 0.4.2, 0.4.1, 0.4.0, 0.3.13, 0.3.12, 0.3.11, 0.3.10, 0.3.9, 0.3.8, 0.3.6, 0.3.5, 0.3.4, 0.3.3, 0.3.2, 0.3.0

@lucasqiu
Copy link
Contributor

lucasqiu commented Jul 7, 2016

@Antonhansel
got same error too. I believe it is due to this recent commit while eslint-plugin-import ditched 1.10.1 and bumped to 1.10.2.
a279b0e
import-js/eslint-plugin-import@21be81c

@mxstbr I tried using eslint-plugin-import@1.10.2 and worked. Let me know if you think that sounds like a good resolution.

@gihrig
Copy link
Contributor

gihrig commented Jul 7, 2016

Merged #660 bump eslint-plugin-import to 1.10.2 smooth setup. Should work, Try now.

...
Building the Webpack DLL...
Hash: 4d0224339b8b0e0be27e
Version: webpack 2.1.0-beta.13
Time: 6006ms
...

Mac OS 10.11.5

Thanks for the PR @lucasqiu 😄

@lock
Copy link

lock bot commented May 30, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants