

Nowadays, there are different toolchains available to set up the react app. React has become so popular because of its features like the creation of fast reusable components and the use of JSX, an easy-to-understand syntax extension that allows writing HTML like syntax in javascript.Ĭreating a React project from scratch happened to be a multistep process that required setting up a code transpiler to convert modern javascript and (JSX) to browser-readable code, setting up a build system and a base directory structure. React is one of the most well-known libraries used for the creation of client-side applications.

Npm ERR! A complete log of this run can be found in: There is likely additional logging output above. Npm ERR! This is probably not a problem with npm. This generated this error: > build:dev /Users/chriscruz/Desktop/my-app I also ran the following command npm run build:dev src/index.js multi (webpack)-dev-server/client?. Module parse failed: Unexpected token (1:5) src/App.js 20:0-30 multi (webpack)-dev-server/client?. You may need an appropriate loader to handle this file type. Module parse failed: Unexpected token (1:0) src/App.js multi (webpack)-dev-server/client?. Npm install -save-dev I've also created the following file following this instruction const path = require('path') npm install -save-dev webpack webpack-dev-server webpack-cliģ) Considering that babel is needed Ive also followed these steps from this instruction npm install -save-dev install -save-dev babel-loader I've created a create-react-app project following the documentation provided by create-react-appġ) I create my project and cd into it npx create-react-app my-appĢ) I've followed the getting started documentation and installed webpack, webpack-cli, and webpack-dev-server.
