Going back to a project in WSL that's built using NPM, npm run not working?

I'm absolutely sure I'm missing something as it shouldn't be this difficult to just carry on from where I left off, suuurely? All I've done here is open WSL, cd into my directory,
code .
code .
to open vsc, then the terminal is screenshotted here.
No description
16 Replies
Jochem
Jochem16mo ago
what's in your package.json? also, isn't your project one level down from there in restaurant-app or something?
CDL
CDLOP16mo ago
No description
b1mind
b1mind16mo ago
To under stand what you are running like Jochem said. You have npm run scripts in your package.json if you look at it you will see the commands you have avail ewww webpack >.>;;
CDL
CDLOP16mo ago
not my choice!!
b1mind
b1mind16mo ago
lol everything is a choice
CDL
CDLOP16mo ago
scripts is weird
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Jochem
Jochem16mo ago
you were using vite yesterday though, right?
b1mind
b1mind16mo ago
So you don't have a start script
CDL
CDLOP16mo ago
yeah I have a vite version im doing with my mentor where we're using a render function to control state
b1mind
b1mind16mo ago
so doing run start = nothing
CDL
CDLOP16mo ago
this version is just the carbon copy of top
b1mind
b1mind16mo ago
all you have is npm run test
CDL
CDLOP16mo ago
hmmm ok
Jochem
Jochem16mo ago
are you expecting vite to work in the webpack project?
CDL
CDLOP16mo ago
probably not, but we haven't tried tbh
b1mind
b1mind16mo ago
you shouldn't xD Vite uses Rollup no need for webpack but I have seen some hacky ways to use webpack with vite. So it is possible
Want results from more Discord servers?
Add your server