IssueRaiser

Compilation error with react-scripts 4.0.0 ( Can't resolve file )

latest update of react-scripts to 4.0.0 from 3.4.4 causes a compilation problem. With 3.4.4 it works, and the file exists ```bash ./src/styles/mycssfile.css Error: Can't resolve '/images/module/filename.png' in 'D:\dev\workspace\xxxxxxxxx\src\styles' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! xxxxxxxxxxxxxxx@1.0.0 build: `react-scripts build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the xxxxxxxxxxxxx@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\xxxxxxxxxxxxxx\AppData\Roaming\npm-cache\_logs\2020-10-23T16_16_47_530Z-debug.log ```

Posted by masbaehr on Oct 23, 2020, 4:37 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Other)

Compilation error with react-scripts 4.0.0 ( Can't resolve file )

masbaehrOct 23, 2020, 4:37 PM

latest update of react-scripts to 4.0.0 from 3.4.4 causes a compilation problem. With 3.4.4 it works, and the file exists ```bash ./src/styles/mycssfile.css Error: Can't resolve '/images/module/filename.png' in 'D:\dev\workspace\xxxxxxxxx\src\styles' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! xxxxxxxxxxxxxxx@1.0.0 build: `react-scripts build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the xxxxxxxxxxxxx@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\xxxxxxxxxxxxxx\AppData\Roaming\npm-cache\_logs\2020-10-23T16_16_47_530Z-debug.log ```

Comments (0)

No comments yet. Start the discussion.

Comment on this issue