Error when using the Atom server for a React.js App

0
  

./ src / index.css   (./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) C: \ Users \ user \ this -app \ node_modules \ autoprefixer \ lib \ hacks \ grid-template.js: 1

     

(function (exports, require, module, __filename, __dirname) {                                                                  SyntaxError: Invalid or unexpected token

I have seen that it is a problem with a css loader ... but I am not sure since those errors were prior to the creation of the workbox-webpack-plugin.

Also disable the topic of serviceWorker.unregister()

Help and thanks in advance.

    
asked by Luis Adolfo Rodrguez Fernndez 12.10.2018 в 02:42
source

1 answer

0

Ok, as I am new to creating native applications through React.js.

There are two things I did wrong.

  • We must make sure that the installation process of the files is fine ... When I entered the grid-template.js file, there was no method inside. Therefore, it could not execute its functions when using the web-server.

  • I'm also new to this Node.js , which is key to making the build in react, and the commands I confuse are npx and > npm . One is to use the modules you have locally and the other is to make use of them without having to install them globally on your computer, as well as the environment variables. Those things ...

  • answered by 13.10.2018 в 01:03