ReactJS Basics - #2 Setup Workspace with Webpack

ReactJS Basics - #2 Setup Workspace with Webpack

Academind

7 лет назад

348,960 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

gaurav chahar
gaurav chahar - 02.08.2023 13:30

I did everything as you mentioned , but it is giving me this
My "build": "webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot",

PS C:\Users\gaurchah\Documents\webd notes\reactjs> npm start

> [email protected] start
> npm run build


> [email protected] build
> webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot

[webpack-cli] Error: Option '-d, --devtool <value>' argument missing
[webpack-cli] Run 'webpack --help' to see available commands and options
PS C:\Users\gaurchah\Documents\webd notes\reactjs>

Ответить
Rob Tangled
Rob Tangled - 13.06.2022 18:43

When I run the npm start I get the error: [webpack-cli] Error: Option 'd, --devtool <value>' argument missing

Ответить
Vignesh D
Vignesh D - 11.01.2022 06:18

Hi Everyone,
I folowed instruction as said but I'm getting the below error.
Error: Option '-d, --devtool <value>' argument missing
Where I'm missing?

Ответить
AlmaG3st
AlmaG3st - 27.11.2021 08:14

do we need this today (2021) when we have create-react-app?

Ответить
EKTA MAKHIJA
EKTA MAKHIJA - 20.11.2021 18:33

can you update this video with create-react-app and webpack 5 as per 2021

Ответить
Jan Kuß
Jan Kuß - 09.11.2021 14:07

POV: You're german and double point sounds legit.

Ответить
EKTA MAKHIJA
EKTA MAKHIJA - 27.10.2021 13:14

hi after running npm start i getting this error
[webpack-cli] Error: Option '-d, --devtool <value>' argument missing
[webpack-cli] Run 'webpack --help' to see available commands and options
can u explain what i did wrong ?

Ответить
EKTA MAKHIJA
EKTA MAKHIJA - 27.10.2021 13:14

hi after running npm start i getting this error
[webpack-cli] Error: Option '-d, --devtool <value>' argument missing
[webpack-cli] Run 'webpack --help' to see available commands and options
can u explain what i did wrong ?

Ответить
static-m-s
static-m-s - 06.09.2021 23:14

For those who will try to follow the instructions - this instructions are highly outdated, and not usable anymore. The babel has newer versions, and nothing from described in the video is actual anymore. When you try to start the server, you will get into a spiral of errors.

Ответить
The Phil Berman Experience
The Phil Berman Experience - 05.03.2021 04:58

Hello, I accidentally put this comment in the previous video. I am getting an error :
[webpack-cli] Error: Option '-d, --devtool <value>' argument missing
[webpack-cli] Run 'webpack --help' to see available commands and options Note: when I ran npm start it asked me if I wanted to install webpack-cli, I said yes. I think perhaps I have a newer version of webpack, that is requiring some parameters.

Ответить
Peter Lelkes
Peter Lelkes - 23.02.2021 12:33

why not using: "npm create-react-app"?

Ответить