Skip to content

AWS Codebuild: Cannot find file '[...]' in '[...]'. #11505

@iiLearner

Description

@iiLearner

Describe the bug

Hello, this may not be a bug but something i might have messed up but since i cant figure what exactly is wrong i thought of creating this issue.
On my local machine, im able to run everything perfectly fine and even build and upload the artifacts manually to prod server. however since we use aws code pipeline to build and push projects into production Im having this issue when aws codebuild service tries to build the project, here's some logs:
https://hastebin.com/vucekijoji.sql

Please keep in mind everything used to work perfectly fine and I dont honestly recall changing anything personally, but since just this morning the code build service has stopped working. PLEASE ALSO KEEP IN MIND ON MY LOCAL MACHINE EVERYTHING WORKS PERFECTLY FINE.

Did you try recovering your dependencies?

I'm currently running this aws code build service which runs on the latest npm version.

Which terms did you search for in User Guide?

react-scripts Cannot find file './../components/Loader' in './src/route'.

Environment

I'm currently running on aws code build service which runs latest versions of node and specified versions of react-scripts
React-scripts version: ^4.0.3

Steps to reproduce

Push code to aws pipeline which then pushes to aws code build to build it using the following commands:
npm i && npm run build

Expected behavior

For project to compile and build properly

Actual behavior

Project fails to build, ss:
https://i.imgur.com/30nrHlm.png

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions