Next JS 10+ Yarn Berry PNP Issue #25296
Unanswered
modern-dev-dude
asked this question in
Help
Replies: 1 comment
-
|
So, just figured it out. My VS code was not picking up the installed TS version for the package. Switched to TS 4.1.5-pnpify on the editor and it works as intended....... I am going to sleep now hahah |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having issues configuring yarn berry with pnp and next js. I have followed and attempted numerus guides to include a great article Getting started with Yarn 2 and TypeScript by xsmith.
If anyone would be so kind to check my repo to recreate the env and issue "Cannot find module 'next/app' or its corresponding type declarations."
VS Code V1.56.2
NextJS V10.2.2
Typescript V4.1
Yarn V2.4.1
I know a quick fix is to use NPM and forget this added complexity of the TS compiler not picking up the node modules paths.
TIA for any time one may spend on this. I know were all busy and it would truly mean a lot to me on why this is not working.
Beta Was this translation helpful? Give feedback.
All reactions