Comments (3)
Do you have "postinstall": "electron-webpack dll" ?
Maybe you use custom HTML?
from electron-webpack.
Yes I do have "postintall": "electron-webpack dll"
Also, now I'm getting a different error when I run electron-webpack dll:
Error: DllPlugin: supply an Array as entry
Similar to this:
electron-react-boilerplate/electron-react-boilerplate#1199
from electron-webpack.
I have the same issue.
Debugging it, I found that in webpack/lib/DLLPlugin
([email protected]
), there is this code:
compiler.plugin("entry-option", (context, entry) => {
function itemToPlugin(item, name) {
if(Array.isArray(item))
return new DllEntryPlugin(context, item, name);
else
throw new Error("DllPlugin: supply an Array as entry");
}
if(typeof entry === "object" && !Array.isArray(entry)) {
Object.keys(entry).forEach(name => {
compiler.apply(itemToPlugin(entry[name], name));
});
} else {
compiler.apply(itemToPlugin(entry, "main"));
}
return true;
});
EDIT:
Logging via console.log('DllPlugin', {item})
inside function itemToPlugin(item, name)
we can see this:
DllPlugin { item: [ 'classnames', 'autobind-decorator' ] }
DllPlugin { item: 'dll' }
The problem is that dll
ends up in there as a string, which is not an array..
This is probably due to entry
coming in as { vendor: [ 'classnames', 'autobind-decorator' ], main: 'dll' }
from electron-webpack.
Related Issues (20)
- lint error when running the lint script
- Fail to transpile other js files next to src/main/index.js file HOT 4
- rendering react-router-dom hooks cause hooks rules error HOT 3
- Custom webpack config gets into infinite loop HOT 5
- Sentry integration not working HOT 10
- electron-webpack dev not works for flash plugin HOT 1
- Question: Devserver disable
- electron-webpack issue on --env.production parameter HOT 1
- electron 13.x HOT 6
- Images not showing up in output folder HOT 1
- CSS Error: Unexpected Token
- Can you push update so there was support of Webpack 5? HOT 5
- Adding tailwind to Electron-Webpack HOT 1
- electron-webpack doesn't recognize my loader HOT 3
- NAPI Addon How it works in electron-wepack HOT 1
- Recommended migration strategies? HOT 3
- map file not server by webpack-dev-server HOT 1
- Segmentation fault on Windows 11
- Electron cannot be found after packaging??? HOT 2
- Update expo from 49 to 50 blank white page.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-webpack.