Hello everyone, my app works properly in the local...
# seed
m
Hello everyone, my app works properly in the local env, but when I try to deploy it via Seed, I get this error. Might someone know what is causing it?
f
Hey @Meris Tarhanis, did you
npm install
the React app in
seed.yml
?
m
I already fixed that issue but now I have a new one @Frank
f
can u try replacing
color-adjust
with
print-color-adjust
as the error suggest?
m
Thing is I am not using that anywhere 😄
f
i’m curious if you run
CI=true sst build
locally, do u get the same error?
m
Let me try
I guess I can't use that command on Windows
f
no worries.. can you show me how u r defining the ReactStaticSite construct in ur stack code?
m
Copy code
const site = new ReactStaticSite(stack, "ReactSite", {
    path: "frontend",
    // Pass in our environment variables
    environment: {
      //TODO: Allow the Frontend to access the API 
      // REACT_APP_API_URL: api.customDomainUrl || api.url,
      REACT_APP_REGION: app.region,
      // REACT_APP_BUCKET: bucket.bucketName,
      REACT_APP_USER_POOL_ID: auth.userPoolId,
      REACT_APP_IDENTITY_POOL_ID: auth.cognitoIdentityPoolId,
      REACT_APP_USER_POOL_CLIENT_ID: auth.userPoolClientId,
    },
  });
f
and r u using yarn or npm?
m
npm
f
below
path
, can u add
Copy code
buildCommand: "CI=false npm run build"
the default
buildCommand
is
npm run build
, we are setting CI to false here
I think this should fix it
m
so it will work if I do
npx sst build --stage dev
?
Or deploy via seed
f
yeah deploy via Seed
m
Okay
ty
Will try it out and tell you the outcome
f
yeah lemme know and I will build that into the ReactStaticSite construct, so u don’t have to do this
^ here’s where i got the idea from https://github.com/vercel/vercel/pull/7584
m
@Frank it worked, thank you mate