question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'entryOption' of undefined

See original GitHub issue

Hi,

I got this error when I try to launch the project “npm run start”

Could you help me please ?

Prompt error :

Cannot read property ‘entryOption’ of undefined npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! architectui-react-theme-free@1.0.0 start: cross-env NODE_PATH=./src node scripts/start.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the architectui-react-theme-free@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Log error :

0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘run’, 1 verbose cli ‘start’ ] 2 info using npm@6.9.0 3 info using node@v10.15.3 4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ] 5 info lifecycle architectui-react-theme-free@1.0.0~prestart: architectui-react-theme-free@1.0.0 6 info lifecycle architectui-react-theme-free@1.0.0~start: architectui-react-theme-free@1.0.0 7 verbose lifecycle architectui-react-theme-free@1.0.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle architectui-react-theme-free@1.0.0~start: PATH: C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\DEV\architectui-react\node_modules.bin;C:\Program Files\nodejs;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\AppData\Roaming\npm 9 verbose lifecycle architectui-react-theme-free@1.0.0~start: CWD: D:\DEV\architectui-react 10 silly lifecycle architectui-react-theme-free@1.0.0~start: Args: [ ‘/d /s /c’, 10 silly lifecycle ‘cross-env NODE_PATH=./src node scripts/start.js’ ] 11 silly lifecycle architectui-react-theme-free@1.0.0~start: Returned: code: 1 signal: null 12 info lifecycle architectui-react-theme-free@1.0.0~start: Failed to exec start script 13 verbose stack Error: architectui-react-theme-free@1.0.0 start: cross-env NODE_PATH=./src node scripts/start.js 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid architectui-react-theme-free@1.0.0 15 verbose cwd D:\DEV\architectui-react 16 verbose Windows_NT 10.0.17763 17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “run” “start” 18 verbose node v10.15.3 19 verbose npm v6.9.0 20 error code ELIFECYCLE 21 error errno 1 22 error architectui-react-theme-free@1.0.0 start: cross-env NODE_PATH=./src node scripts/start.js 22 error Exit status 1 23 error Failed at the architectui-react-theme-free@1.0.0 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:11

github_iconTop GitHub Comments

51reactions
ralewis85commented, Aug 2, 2019

You just need to remove ^ from webpack-dev-server in your package.json file. I have opened a PR to fix this issue.

39reactions
muzeyrcommented, Nov 23, 2019

Maybe this code will help you,

npm install webpack-dev-server@2.9.7 --save-dev

Read more comments on GitHub >

github_iconTop 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 - CSDN博客
在运行React+webpack程序的时候出现Cannot read property 'entryOption' of undefined去网上找了很多也没找到具体原因,后来我把webpack-cli卸载就好 ...
Read more >
[Help Needed] SVG Sprites with Laravel.Mix - Laracasts
I could not get this to work - webpack would not trigger the loader, regardless of renaming the SVG ... "Cannot read property...
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found