-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: Not finding modules in Typescript import statements #3350
Comments
You're missing a dependency on |
@merceyz Unfortunately that does not solve the issue. Ran This is not a React specific issue. All modules are not found unless they are relative paths. |
I missed the version number, sorry about that. TypeScript 4.4 doesn't have the PnP patch yet, will be fixed by #3297, you can either run yarn set version from sources --branch 3297 && yarn to get the update now or downgrade to TypeScript 4.3 EDIT: Released in
|
Thank you @merceyz! Been scratching my head for a while |
I'll reopen to increase visibility for others running into the same issue |
In that case, is there a way to run |
The SDK is unrelated here so |
Been stuck on this for a while. Luckily I searched the issues and removed the "is:open" filter :) |
The fix has been released as
|
Unfortunately, this issue still occurs. System: package.json
{
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"serve": "vite preview",
"prepare": "husky install"
},
"dependencies": {
"antd": "^4.17.1",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
"devDependencies": {
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@vitejs/plugin-react": "^1.0.0",
"eslint": "^8.2.0",
"husky": "^7.0.4",
"prettier": "^2.4.1",
"typescript": "^4.3.2",
"vite": "^2.6.4"
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
}
}
|
@MAST1999 it should work with Yarn v2 and PnP. Are you sure you have Eaxmple: GraphQL API and Relay Starter Kit → |
@koistya |
Self-service
Describe the bug
Yarn VSCode SDK no longer working to find modules
To reproduce
yarn set version berry
yarn init
index.ts
yarn add typescript -D
index.ts
import React from 'react'
yarn add react
yarn dlx @yarnpkg/sdks vscode
Environment
System:
OS: Windows 10 10.0.19043
CPU: (4) x64 Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
Binaries:
Node: 14.17.4 - C:\Users\user\AppData\Local\Temp\xfs-f520d191\node.CMD
Yarn: 3.0.1 - C:\Users\user\AppData\Local\Temp\xfs-f520d191\yarn.CMD
npm: 7.11.1 - C:\Program Files\nodejs\npm.CMD
Additional context
Yarn v3.0.1
The text was updated successfully, but these errors were encountered: