Tanika
Tanika•2y ago

I m doing the next js quickstart and

I'm doing the next.js quickstart, and whenever I do npm run dev it executes and then terminates and nothing happens. I'm kind of confused because I copied literally everything exactly yet nothing really happens so if someone could help out that would be great 🙂
26 Replies
nipunn
nipunn•2y ago
Hi. Mine looks something like this when I run it. I've never seen the (lack of) output you're seeing, so we'll have to debug together.
No description
nipunn
nipunn•2y ago
My first thought is to try directly running npx next dev - which is the underlying command
nipunn
nipunn•2y ago
mine looks like this
No description
nipunn
nipunn•2y ago
what OS are you running on?
Tanika
TanikaOP•2y ago
when you run npm install convex, do you see like "skipping optional dependencies" a bunch of times
Tanika
TanikaOP•2y ago
No description
Tanika
TanikaOP•2y ago
mac
nipunn
nipunn•2y ago
I did not see that. It does look like you're on an older unsupported version of node which could be a contributing factor.
Tanika
TanikaOP•2y ago
o that makes sense tysm for helping me out 🙂 im gonna try reinstalling node and seeing if that works
nipunn
nipunn•2y ago
yeah - it may not be the only issue, but it seems like it should def be a step in the right direction
Tanika
TanikaOP•2y ago
i think that definitely fixed it, but now I have an error that says this wait nvm got it
Tanika
TanikaOP•2y ago
No description
Tanika
TanikaOP•2y ago
im pretty sure I put "no" for typescript as shown through the quickstart
nipunn
nipunn•2y ago
I actually got that error too. I think it happens until you do the next step where you add a file inside convex/ directory we can probably improve the order of the instructions
Tanika
TanikaOP•2y ago
sorry that I'm asking a lot btw ): thanks for helping me
nipunn
nipunn•2y ago
happy to help
Tanika
TanikaOP•2y ago
did u get smth like dis when trying to run
No description
Tanika
TanikaOP•2y ago
i just copied and pasted the index.js stuff its so weird its like i'm copying and pasting everything exactly from the quickstart and smth goes wrong lul
nipunn
nipunn•2y ago
ya I'm trying it too I'm also getting the error first thing I'm noticing is that import should probably be "../convex/_generated/react" (leading .. instead of .)
Tanika
TanikaOP•2y ago
ok i made the change and a new error comes up ):
nipunn
nipunn•2y ago
yeah I think the copy-pasted snippet is missing some imports too I'm working through them trying to get something working
Tanika
TanikaOP•2y ago
if the quickstart isnt accurate is there a place where i can like copy code and see if it works
nipunn
nipunn•2y ago
sorry that this experience kinda sucks. We'll improve it
Tanika
TanikaOP•2y ago
im kinda new to convex and rly want to try it and obv the quickstart isnt working too great for me is there like boilerplate code I can try if possible idk its fine nvm ill j clone the github repo. tysm for the help <33
nipunn
nipunn•2y ago
ya I hear ya. Will fix the quickstarts. The github repo (convex-demos) will have some working stuff

Did you find this page helpful?