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

How to solve: dll plugin: supply an array as entry error #1199

Closed
hyalkaf opened this issue Sep 6, 2017 · 1 comment
Closed

How to solve: dll plugin: supply an array as entry error #1199

hyalkaf opened this issue Sep 6, 2017 · 1 comment

Comments

@hyalkaf
Copy link

hyalkaf commented Sep 6, 2017

Not sure if this is the best place to report this issue though it would be a good start.

I have cloned this boilerplate a long time ago and made lots of changes to it and the change that I made related to this issue was using multiple windows.

Recently, I pulled from upstream to get all the updates. Whenever I try to run npm run build-dll I get this error: DllPlugin: supply an Array as entry. Turns out that in my base config (webpack.config.base.js) I have entry points as strings not arrays which throws this exception with that error message. This to me seems like a bug and I would like to report it in the webpack project but thought I would share it with you guys since it happened after updating from this repo.

How my entry object used to look like:
entry: { bundle: './app/index.jsx', worker: './app/worker.jsx', worker2: './app/worker2.jsx' }

How it looks like now:
entry: { bundle: ['./app/index.jsx'], worker: ['./app/worker.jsx'], worker2: ['./app/worker2.jsx'] }

This is the snippet from the node_modules/webpack/lib/DllPlugin.js file that throws the error:

function itemToPlugin(item, name) {
  if(Array.isArray(item))
    return new DllEntryPlugin(context, item, name);
  else 
    throw new Error("DllPlugin: supply an Array as entry");
}
@stale
Copy link

stale bot commented Aug 6, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 6, 2018
@stale stale bot closed this as completed Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants