Skip to content

Cannot find module 'eslint/lib/formatters/stylish' #3617

Closed
@MaronMariusz

Description

@MaronMariusz

Hi,

I found some strange issue to me:

Failed to compile.
./src/index.js
Module build failed: Error: Cannot find module 'eslint/lib/formatters/stylish'

What I did is just create app by using create-react-app myapp-name and that worked fine.
After that I had to push the project to repository and erase my mac disk image in order to install fresh copy of macOS image (due to some OS problems). Now I have everything fresh and after cloning repo, running npm i and then npm start I get mentioned message.

Moreover I tested it on newly created project and build works - for my app that I work on - does not.

I tried to test some case and steps like following:

  1. create-react-app myapp
  2. cd myapp
  3. rm -rf node_modules/
  4. cd ..
  5. mv myapp otherapp
  6. cd otherapp/
  7. npm i
  8. npm start

are good example to reproduce described issue.

My node version is: 9.3.0.
Trying it with 4.x and nothing changed.

Do you have some quick tip how to resolve it ?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions