Devin
11/10/2021, 12:49 AM"build": "craco build",
instead of "build": "react-scripts build",
. For some reason in Seed.run my unit tests fail for the react site. They don’t fail locally. Anyone else encounter this?Devin
11/10/2021, 12:50 AMFAIL test/MyStack.test.js (79.653 s)
● Console
console.log
Building Lambda function src/lambda.handler
at builder (node_modules/@serverless-stack/resources/src/util/nodeBuilder.ts:127:11)
at Array.forEach (<anonymous>)
console.log
Building static site frontend
at ReactStaticSite.buildApp (node_modules/@serverless-stack/resources/src/StaticSite.ts:181:17)
● Test Stack
There was a problem building the "ReactSite" StaticSite.
26 | ]);
27 |
> 28 | const reactApp = new sst.ReactStaticSite(this, "ReactSite", {
| ^
29 | path: "frontend",
30 | environment: {
31 | REACT_APP_API_URL: api.url,
at ReactStaticSite.buildApp (node_modules/@serverless-stack/resources/src/StaticSite.ts:191:15)
at new StaticSite (node_modules/@serverless-stack/resources/src/StaticSite.ts:93:24)
at new ReactStaticSite (node_modules/@serverless-stack/resources/src/ReactStaticSite.ts:43:5)
at new MyStack (stacks/MyStack.js:28:22)
at Object.<anonymous> (test/MyStack.test.js:8:17)
Frank
sst build
work on SEED?Devin
11/10/2021, 2:56 PMDevin
11/10/2021, 3:01 PMDevin
11/10/2021, 3:01 PMDevin
11/11/2021, 3:55 PMFrank