Skip to content

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

Description

@masbaehr

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

./src/styles/mycssfile.css
Error: Can't resolve '/images/module/filename.png' in 'D:\dev\workspace\xxxxxxxxx\src\styles'npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! xxxxxxxxxxxxxxx@1.0.0 build: `react-scripts build`npm ERR! Exit status 1npm 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions