reactjs-basics
reactjs-basics copied to clipboard
The syntax of the command is incorrect.
I am getting the following error when using the "copy" command while running on windows. Please suggest, I've tried all the alternatives mentioned everywhere.
I ran the "npm install copyfiles -g" and "npm install --save copy" commands and then changed the line in the package.json to" "build": "webpack -d && copyfiles src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot",
and it worked for me.
good luck
having this error in console
@Ronny9313 Use the backward slashes(\) instead of forward slashes(/) because you are using windows. In windows file system uses backward slashes. Hope it works if not let me know.
@aneeba use type attribute in script tag as type="javascript". I hope it works if no let me know.
@nitinprajapati thanks! your suggestion works. I'm running ReactJS on Windows 10 and the fixed code line looks like this. "build": "webpack -d && copy src\index.html dist\index.html && webpack-dev-server --content-base src\ --inline --hot",
i am getting the error: the syntax of the command is incorrect. in windows 10 while using getpapers kindly help me out
@kareenasingh Can you tell me what it is getpapers? Or set the context in what sense you are asking.