Just curious - I currently have a SS project that ...
# help
a
Just curious - I currently have a SS project that I'd like to do local development on. However, to run
npm start
I need to run
npx sst start
in the parent directory (for the
creds
file). Is there a better way to do local development with a SS project?
f
Hey @Aaron McCloud, sorry for the late reply. What’s your project structure? Is the parent directory the root of the repo or is the current directory the root? Also, what
creds
file are you referring to?
Sorry to fire so many questions at ya lol.. if you could elaborate on ur setup 😁
a
I set up the project using the most updated version of SS. For this to run, the root needs to have
npx sst start
running in it. The front-end is in a child folder of the root, in line with the SS guidance. Running
npm start
in the child folder, with the front-end, gives me the error:
Copy code
sst-env: Cannot find the SST outputs file in [path to root folder]. Make sure "sst start" is running.
There is some kind of SST outputs file that needs to be generated to run the front-end, and running that command in the root folder causes the deployed stack to show a front-end that says something like
front-end being built by Serverless Stack
.
f
Just to clarify, does the folder structure look like this:
Copy code
/
  sst.json
  frontend/
And what you saw is that if you ran
npx sst start
inside root
/
, and then try to run
npm start
inside
frontend/
, you get the
sst-env: Cannot find the SST outputs file
error.
Is this correct?
a
Yes, that is correct.
f
Hi Aaron, when you run into this error again, can you try listing out all the files inside the root
.build
folder? The file
sst-env
is looking should be in there.
Let me know.
a
I'll look for it there. Thanks! 🙏