You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
`works just fine if the build stage of the code pipeline.
If I use artifact from build stage as an input for deploy stage and run
npm run test It fails in the deploy stage with the following error:
`
CI=true react-scripts test --env=jsdom --no-cache internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module '../scripts/test' Require stack: - /codebuild/output/src177948730/src/node_modules/.bin/react-scripts at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.resolve (internal/modules/cjs/helpers.js:80:19) at Object. (/codebuild/output/src177948730/src/node_modules/.bin/react-scripts:31:23) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [ '/codebuild/output/src177948730/src/node_modules/.bin/react-scripts' ]
`
If I change the script to
"test": " ./node_modules/react-scripts/bin/react-scripts.js test ", This works okay in the deploy stage but not in the build stage. What is happening? How can I fix it?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
npm scripts like
`test: 'react-scripts test'
`works just fine if the build stage of the code pipeline.
If I use artifact from build stage as an input for deploy stage and run
npm run test
It fails in the deploy stage with the following error:`
"test": " ./node_modules/react-scripts/bin/react-scripts.js test ",
This works okay in the deploy stage but not in the build stage. What is happening? How can I fix it?The text was updated successfully, but these errors were encountered: