Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

webpack-cli fails to run with latest resolved version 2.1.5 #21

Open
jchavarri opened this issue Jan 28, 2020 · 0 comments
Open

webpack-cli fails to run with latest resolved version 2.1.5 #21

jchavarri opened this issue Jan 28, 2020 · 0 comments

Comments

@jchavarri
Copy link

I tried to run this sample app with latest versions of packages (without touching package.json, just upgrading them) but it fails to run Webpack. The code in master as is works fine.

Versions:

  • yarn: 1.11.0-0
  • node: v12.13.1

Repro:

git clone https://github.com/yarnpkg/pnp-sample-app && cd pnp-sample-app
yarn
yarn webpack

Error:

/Users/x/Library/Caches/Yarn/v3/npm-webpack-cli-2.1.5-3081fdeb2f205f0a54aa397986880b0c20a71f7a/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/x/Library/Caches/Yarn/v3/npm-webpack-cli-2.1.5-3081fdeb2f205f0a54aa397986880b0c20a71f7a/node_modules/webpack-cli/bin/config-yargs.js:89:48)
    at /Users/x/Library/Caches/Yarn/v3/npm-webpack-cli-2.1.5-3081fdeb2f205f0a54aa397986880b0c20a71f7a/node_modules/webpack-cli/bin/webpack.js:60:27
    at Object.<anonymous> (/Users/x/Library/Caches/Yarn/v3/npm-webpack-cli-2.1.5-3081fdeb2f205f0a54aa397986880b0c20a71f7a/node_modules/webpack-cli/bin/webpack.js:515:3)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (/Users/x/Downloads/pnp-sample-app-master/.pnp.js:15473:14)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/x/Library/Caches/Yarn/v3/npm-webpack-4.41.5-3210f1886bce5310e62bb97204d18c263341b77c/node_modules/webpack/bin/webpack.js:156:2)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant