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
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.