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

TypeError: Cannot read property 'properties' of undefined #12

Closed
nicolaskruchten opened this issue Sep 26, 2018 · 9 comments · Fixed by #14 or pes-alcoding-club/alcoding-web-portal#133

Comments

@nicolaskruchten
Copy link
Member

Walking through the README from top to bottom, I hit an error with npm run build:js-dev:


> my-dash-component@0.0.1 build:js-dev /Users/nicolas/plotly/dash-component-boilerplate
> webpack --mode development

/Users/nicolas/plotly/dash-component-boilerplate/node_modules/webpack-cli/bin/config-yargs.js:89
                                describe: optionsSchema.definitions.output.properties.path.description,
                                                                           ^

TypeError: Cannot read property 'properties' of undefined
    at module.exports (/Users/nicolas/plotly/dash-component-boilerplate/node_modules/webpack-cli/bin/config-yargs.js:89:48)
    at /Users/nicolas/plotly/dash-component-boilerplate/node_modules/webpack-cli/bin/webpack.js:60:27
    at Object.<anonymous> (/Users/nicolas/plotly/dash-component-boilerplate/node_modules/webpack-cli/bin/webpack.js:515:3)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-dash-component@0.0.1 build:js-dev: `webpack --mode development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-dash-component@0.0.1 build:js-dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nicolas/.npm/_logs/2018-09-26T19_27_29_669Z-debug.log
@fskpf
Copy link

fskpf commented Sep 27, 2018

This was broken by a webpack update, see webpack/webpack#8082

A workaround for now is to update both, webpack and webpack-cli in package.json:

    "webpack": "^4.20.2",
    "webpack-cli": "^3.1.1",

@nicolaskruchten
Copy link
Member Author

That fixed it for me, thanks! @T4rk1n you want a PR?

@T4rk1n
Copy link
Contributor

T4rk1n commented Sep 27, 2018

@nicolaskruchten I got my cookiecutter PR coming up, I already changed the versions there.

@thomasoss
Copy link

thomasoss commented Oct 2, 2018

That fixed it to me, too. ;-). I got the problem after installing nano.
After altering the version of webpack in package.json and
npm install --save webpack-cli
the problem was fixed
Thank's

booshwa added a commit to booshwa/jsapi-webpack-demo that referenced this issue Oct 9, 2018
Webpack TypeError: Cannot read property 'properties' of undefined error fix found here: plotly/dash-component-boilerplate#12
dhwaneel added a commit to dhwaneel/webpack.js.org that referenced this issue Oct 21, 2018
Incremented versions for webpack and webpack-cli as was initially was generating error when running 'npx webpack' - 'Cannot read property 'properties' of undefined'. Please refer plotly/dash-component-boilerplate#12
universe-42 added a commit to universe-42/2018-03-nette-webpack that referenced this issue Oct 22, 2018
f3l1x pushed a commit to contributte/webpack-skeleton that referenced this issue Oct 22, 2018
dhwaneel added a commit to dhwaneel/webpack.js.org that referenced this issue Oct 24, 2018
Incremented versions for webpack and webpack-cli as was initially was generating error when running 'npx webpack' - 'Cannot read property 'properties' of undefined'. Please refer plotly/dash-component-boilerplate#12
montogeek pushed a commit to webpack/webpack.js.org that referenced this issue Oct 24, 2018
Incremented versions for webpack and webpack-cli as was initially was generating error when running 'npx webpack' - 'Cannot read property 'properties' of undefined'. Please refer plotly/dash-component-boilerplate#12
peccu added a commit to peccu/go-active-learning-web that referenced this issue Nov 8, 2018
johnbradley added a commit to Duke-GCB/iMADS that referenced this issue Nov 13, 2018
Changes to fix error building in dockerhub:
```
[91m/tfdnapredictions/portal/node_modules/webpack-cli/bin/config-yargs.js:89
				describe: optionsSchema.definitions.output.properties.path.description,

TypeError: Cannot read property 'properties' of undefined
```

Found solution here: plotly/dash-component-boilerplate#12
kale-stew pushed a commit to FormidableLabs/spectacle that referenced this issue Dec 3, 2018
* Upgrade webpack to latest, as seen in plotly/dash-component-boilerplate#12

* Upgrade react-live to latest, as seen in bublejs/buble#159

* Make lint happy again

* Update all packages in yarn
hackjutsu added a commit to hackjutsu/Lepton that referenced this issue Dec 8, 2018
webpack-cli need to update with webpack update of 4.20.2 as said
plotly/dash-component-boilerplate#12
@syd192
Copy link

syd192 commented Jan 15, 2019

卸载再重装就好了~
npm uninstall webpack-cli
npm install webpack-cli

@sravani123
Copy link

"webpack": "^4.20.2",
"webpack-cli": "^3.1.1",

This worked well 👍

@jpthirumalai
Copy link

npm install --save webpack-cli -- fixed the error

@lucasverissimopapini
Copy link

Isso foi quebrado por uma atualização do webpack, veja webpack/webpack#8082

Uma solução alternativa por enquanto é atualizar ambos, webpack e webpack-cli em package.json:

    "webpack": "^4.20.2",
    "webpack-cli": "^3.1.1",

Isso super me ajudou e corrigiu o problema

@Praveenkj
Copy link

Praveenkj commented Jan 12, 2021

TypeError: Cannot read property 'tapAsync' of undefined

I am getting this after changing the webpack version....

"webpack": "^4.20.2",
"webpack-cli": "^3.1.1",

Someone with me?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants