How to get verbose log from react-scripts build script?

Viewed 1326

I upgraded to the react-scripts v5 and my build fails with an unuseful message:

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve '...' in '/project/src'

As you can see it only tells me that there was a problem in the src directory, which is literally the entire project.

How can I increase verbosity of this script?

1 Answers

Do you have the index.js file inside project/src? Does it have import from ... (or /project/index.js)?

Related