Webpack-cli: NPX WEBPACK-CLI INIT

Created on 29 Nov 2019  路  4Comments  路  Source: webpack/webpack-cli

version 0.3.0
when I run
npx webpack-cli init
it returns "init isn't a valid name. It should be prefixed with 'webpack-scaffold', but have different suffix.

Most helpful comment

@rishabh3112

When I run: npx webpack-cli create --auto

I get:

ERROR in Entry module not found: Error: Can't resolve 'create' in 'D:\SystemFolders....'

My entry module is src/index.js?!

 "devDependencies": {
    "@webpack-cli/init": "^0.3.0",
    "babel-loader": "^8.0.6",
    "webpack": "^4.41.5",
    "webpack-cli": "^3.3.10"
  },

All 4 comments

@r00nscapenab
If you want to use webpack-cli v3, please downgrade @webpack-cli/init to version 0.2.2.
If you want to use webpack-cli v4(beta) (which would be nice), use following commands after installing webpack-cli@beta

npx webpack-cli create

@rishabh3112

When I run: npx webpack-cli create --auto

I get:

ERROR in Entry module not found: Error: Can't resolve 'create' in 'D:\SystemFolders....'

My entry module is src/index.js?!

 "devDependencies": {
    "@webpack-cli/init": "^0.3.0",
    "babel-loader": "^8.0.6",
    "webpack": "^4.41.5",
    "webpack-cli": "^3.3.10"
  },

@rishabh3112

When I run: npx webpack-cli create --auto

I get:

ERROR in Entry module not found: Error: Can't resolve 'create' in 'D:\SystemFolders....'

My entry module is src/index.js?!

 "devDependencies": {
    "@webpack-cli/init": "^0.3.0",
    "babel-loader": "^8.0.6",
    "webpack": "^4.41.5",
    "webpack-cli": "^3.3.10"
  },

I hade to run npm install webpack-cli@beta

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anyulled picture anyulled  路  4Comments

evenstensberg picture evenstensberg  路  5Comments

luillyfe picture luillyfe  路  4Comments

evenstensberg picture evenstensberg  路  5Comments

jbottigliero picture jbottigliero  路  5Comments