anyone else had this issue trying to build? ```Er...
# seed
k
anyone else had this issue trying to build?
Copy code
Error: There was a problem building the "ReactSite" StaticSite.
    at ReactStaticSite.buildApp (/tmp/seed/source/node_modules/@serverless-stack/resources/src/StaticSite.ts:195:15)
    at new StaticSite (/tmp/seed/source/node_modules/@serverless-stack/resources/src/StaticSite.ts:97:10)
    at new ReactStaticSite (/tmp/seed/source/node_modules/@serverless-stack/resources/src/ReactStaticSite.ts:43:5)
    at new FrontendStack (/tmp/seed/source/stacks/FrontendStack.js:10:18)
    at Object.main (/tmp/seed/source/stacks/index.js:19:3)
    at Object.<anonymous> (/tmp/seed/source/.build/run.js:94:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
Failed to get tree.json file: Error: .build/cdk.out/tree.json: ENOENT: no such file or directory, open '.build/cdk.out/tree.json'
There was an error synthesizing your app.
ERROR: Error: There was a problem building the "ReactSite" StaticSite.
f
Hey @Kristian Lake, did you run npm/yarn install in ur React app?
Leaving a note there that this is due to Lint warnings treated as errors in an CI environment (ie.
<http://process.env.CI|process.env.CI> = true
)
k
thank you so much Frank
f
3 options to work around lint warnings: 1. fix the warning 2. update the linting rule to allow the warnings 3. override the build command in
ReactStaticSite
to
CI=false npm run build