NPM Start Error + Beginner Question
I'm new to SolidStart, and I've only been doing web dev with NPM for a few months.
Typically, in all of the projects I've been building, I use
Thanks, Chris
npm run dev
to view my project on a local server.
I watched Ryan's "SolidStart: The Shape of Frameworks to Come" stream on YouTube, and I noticed he was using npm run build
and npm run start
.
I ran npm run build
and then npm run start
in my project, and I got the following error after running npm run start
.
So my first question is, does anyone know what's wrong with this?
My second question is:
Where can I learn more about the difference between:
npm run dev
npm run build
npm run start
I think you "build" a project and then deploy that project with the output, but I'm not sure.
Long story short, I'd like to be more capable of handling these errors, but I don't know where to start.Thanks, Chris
2 Replies
npm build and start is to run a production build. Locally you can mostly just use npm dev
Ok, thank you. I'll scrap the project and build a new one. I'm guessing that might fix the error.