Cannot read property 'entryOption' of undefined
See original GitHub issuewebpack file
const SVGSpritemapPlugin = require('svg-spritemap-webpack-plugin');
...
plugins: [
new ExtractTextPlugin('styles.css'),
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, 'resources/img'),
to: path.resolve(__dirname, 'public/dist/images')
}
]),
new SVGSpritemapPlugin({
// src: path.resolve(__dirname, 'resources/icons'),
// filename: 'sprites.svg'
})
]
This is the firts time I use webpack. Added the const at the top and updated the plugin array. After that trying to run webpack, but I end up with a error below. Added various configurations, same result. I get the following error. Using webpack 3.11.0.
node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development webpack /var/www/…/node_modules/webpack/bin/webpack.js:348 throw err; ^ TypeError: Cannot read property ‘entryOption’ of undefined
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Webpack - Cannot read property 'entryOption' of undefined
I'm using webpack 3.8.1 and webpack-dev-server 3.1.11. Cannot read property 'entryOption' of undefined. const sharedConfig = require('.
Read more >Cannot read property 'entryOption' of undefined #3 - GitHub
Hi, I got this error when I try to launch the project "npm run start" Could you help me please ? Prompt error...
Read more >Cannot read property 'entryOption' of undefined - CSDN博客
在运行React+webpack程序的时候出现Cannot read property 'entryOption' of undefined去网上找了很多也没找到具体原因,后来我把webpack-cli卸载就好 ...
Read more >webpack/webpack - Gitter
But im getting Uncaught TypeError: Cannot read property 'call' of undefined at __webpack_require__ Does anyone might know where to look for this?
Read more >Compiler Hooks | webpack
entryOption. SyncBailHook ... Called after setting up initial set of internal plugins. ... Hook into the compiler before it begins reading records ....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
change the version of webpack-dev-server to “3.0.0” and not “^3.0.0”;
You are welcome 😃