简体   繁体   中英

NextJs setup in vscode using Yarn

I ran yarn create next-app --typescript to create a TypeScript Next app using Yarn. The app runs fine using yarn run dev ; however, vscode does not read any of the yarn packages added. 编辑器视图 I've tried following the instructions on the official Yarn's Editor SDKs article by running:

yarn dlx @yarnpkg/sdks vscode

执行日志 then selecting the TypeScript Version.

Same issue but i found solution https://stackoverflow.com/a/73001522/2991626

just create .yarnrc.yml and add 1 line content nodeLinker: node-modules then just type command yarn and vscode will works with yarn

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM