Skip to content
Advertisement

Build error while compiling create-react-app

I am new to Reactjs and am started learning it. I have been trying to start a basic hello world program but its failing at compilation level. Created a start up hello-word program with create-react-app hello-world it gave me a nice folder structure with bunch of files. And Here you can see the compilation error

JavaScript

Here the error states cannot find module so i tried to install eslint plugin import ,standard ..etc but still its not worked. Below is my webpack.config.dev.js

JavaScript

Can any one guide me how to come out of this build error.

Advertisement

Answer

This means eslint-plugin-import not available in your node_modules.

A fresh npm install eslint-plugin-import and restart the application should fix this issue.

If that didn’t fix, try upgrading your npm version:

JavaScript
Advertisement