A
A
Arthur2019-10-22 17:52:05
Node.js
Arthur, 2019-10-22 17:52:05

Why different case in node_modules on different machines?

I launch a react project locally from create react app (made by eject), and on one of the computers it breaks, swearing that it cannot find some file in the node_modules directory.
I compared the paths, it turned out that on one computer the paths are defined in lowercase

.\node_modules\babel-preset-react-app\node_modules\@babel\...,

and on the other, part of the path is at the top, and because of this it breaks
.\node_modules\babel-preset-react-app\node_modules\@BABEL\...

How to solve this problem correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2019-10-23
@cloudz

solved the problem by removing the line from the webpack config

isEnvDevelopment && new CaseSensitivePathsPlugin(),

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question