Next.js Discord

Discord Forum

NEEED HELP

Unanswered
Silver Fox posted this in #help-forum
Open in Discord
Silver FoxOP
the code is written correctly but underlines these lines, does not see the modules. How to fix it?

21 Replies

Silver Marten
can you send a screenshot of your file structure
Silver FoxOP
this?
Silver Marten
is there an error showing up?
unable to find modules i’m assuming correct ?
Silver FoxOP
Yes
Silver Marten
you using the latest version of next.js?
Silver FoxOP
18.17.0
Silver Marten
uhhh next.js not node
Silver FoxOP
it doesn't look like it's the last one
@Silver Marten uhhh next.js not node
Silver FoxOP
so i hooked it up
@Silver Fox Click to see attachment
Silver Marten
you’re running the latest version of next okay
Silver FoxOP
I don't quite understand what you mean
Silver Marten
are you running the latest version of next.js?
Silver FoxOP
how to check which version?
Silver Marten
Silver FoxOP
@Silver Fox Click to see attachment
Havana
moduleResolution is an option in tsconfig.json which should be in the root of your project. You will need to set it to "node"
Havana
In the root folder of your project there are lots of files.

One of them is called tsconfig.json, can you show us the contents of it?

There is also a file called next-env.d.ts in the root, please show us the contents of that file too.