-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Module ResolutionHow to turn an import specifier into a .d.ts, .ts, or .js file on diskHow to turn an import specifier into a .d.ts, .ts, or .js file on disk
Milestone
Description
Bug Report
🔎 Search Terms
plugin, resolve modules, yarn link, symbol link
🕗 Version & Regression Information
- I was unable to test this on prior versions because Well...
Repro
- We have a project:
tsconfig.json
{
"compilerOptions": {
"plugins": [
{ "name": "test_plugin" }
],
"preserveSymlinks": true
}
}PS: preserveSymlinks is not matter
package.json
{
"name": "demo",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"test_plugin": "file:../..",
"typescript": "^4.3.2"
}
}
index.ts
var a = 123
var b = a + 123
var c = b + 321
var d = a + b + c- build TypeScript, gulp local && gulp lkg
- run
yarn linkin TypeScript project - run
yarn link typescriptin out project - open
index.ts - use workspace version typescript
Log outputs
Info 27 [15:17:58.112] Enabling plugin test_plugin from candidate paths:
/opensource/TypeScript/lib/tsserver.js/../../..,c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features
Obviously, the first candidate path is not correct, and the plugin loaded failed.
And It's works fine if I choice the tarball pack.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Module ResolutionHow to turn an import specifier into a .d.ts, .ts, or .js file on diskHow to turn an import specifier into a .d.ts, .ts, or .js file on disk