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
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");
}
The text was updated successfully, but these errors were encountered:
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.
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:The text was updated successfully, but these errors were encountered: