Iām getting an error when run this command ā./node_modules/.bin/webpackā in Node.js Command Prompt.
error : ā.ā is not recognized as an internal or external command operable program or batch file .
OS: Windows 10.
Thanks
Iām getting an error when run this command ā./node_modules/.bin/webpackā in Node.js Command Prompt.
error : ā.ā is not recognized as an internal or external command operable program or batch file .
OS: Windows 10.
Thanks
Try the following:
node_modules\.bin\webpack
Let me know if that works out for you
Thanks for the quick reply. I tried that too but didnāt work . Then I tried just webpack that works. iām not sure why?
Iām using Visual Studio 2015 and the JSX inteligence are not working ā¦ any idea ?
Thanks And Much appreciated your help ā¦
well explained āReactā setup tutorial .
That is interesting that webpack works but the longer command doesnāt. Iāll have to do some more experimenting to see where things are breaking
VS2015 may not support JSX intellisense out of the box.The posted solution here may work: http://stackoverflow.com/questions/34097915/visual-studio-2015-jsx-es2015-syntax-highlighting
Thanks for your help
Your React book is the best! Yours is the only one that got me through the entire setup process. I think everything is correct, (and webpack runs fine), but when I open the html page, the page is empty. When I view source on the page it has all the HTML from the example, including the src="output/myCode.js javascript.
Any thoughts? Must be something simple, but Iāve triple checked everything and Iām stuck.
Are you using create-react-app? When you do a npm start
, does the example work fine in the browser?
I didnāt use create-react-app (but followed the bookās step-by-step process of building it manually, which was quite informative). When I tried npm start in the MyTotallyAwesomeApp directory, I get an error: āmissing script: startā. I didnāt see anything very interesting in the detailed error that was logged (but maybe Iām not seeing something obvious.
Oh gotcha! The instructions in the book are really outdated at this point. The second edition due in about a month will fix that. In the meantime, here is the latest version of that chapter: https://www.kirupa.com/react/setting_up_react_environment.htm
Sorry for the run-around. This is one of those areas that changed significantly since publication last year
Thanks for the quick response! The new chapter you linked worked great!
:: Copyright KIRUPA 2024 //--