Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TypeError: Cannot read property 'length' of undefined #1023

@wind4gis

Description

@wind4gis

Describe the bug

A 💯 way to do this is to provide your configuration via a GitHub gist and/or to use markdown when describing which commands you used when the error occurred! Be precise and clear in your description of the bug.

What is the current behavior?
when I run webpack --mode development(or production), the webpack-cli shows TypeError: Cannot read property 'length' of undefined on the line node_modules\webpack-cli\bin\cli.js:93. my computer is win10

This is where you elaborate on the current behavior of the cli, how it behaves normally differing from the previous version/build you did.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

1.just create a folder on win10
2.npm i -S webpack@next
3.npm i -S webpack-cli@latest
4.write "dev": "webpack --mode development" in package.json
5.npm run dev

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Please paste the results of webpack-cli info here, and mention other relevant information
image

Additional context
Add any other context about the problem here like linking to an similar issue you might think is the cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions