-
Notifications
You must be signed in to change notification settings - Fork 663
Closed
Labels
external issueThe root cause is with an external component that needs a fix or workaroundThe root cause is with an external component that needs a fix or workaround
Description
First up, I'm not sure if this is the right place for this report, but it's likely going to be relevant to the contributers here.
Problem
My team has run into a curious issue with rush's node module structure and vscode.
When trying to auto-import node modules within a project, intellisense will not locate dependencies.
This also results in the editor's TS server crashing intermittently.
Reproduction
Rush setups tested:
- v5.5.2 / v5.3.0
- node 6 / node 10
- vscode v1.28.2 / insiders
- with either of: npm, yarn or pnpm (all latest)
You can replicate this issue within web-build-tools itself.
And type Colors in the top level (from the colors module). You shouldn't be able to resolve the symbol.
eg.
Colors
export {
CommandLineAction,
ICommandLineActionOptions
} from './CommandLineAction';Workaround
If you execute the below script to replace symlinks with real files:
mv node_modules node_modules_old
rsync node_modules_old/ node_modules/ -a --copy-links -vEverything should work as expected.
aesweeting, octogonz, tet123, totomakers and ifndefdeadmau5
Metadata
Metadata
Assignees
Labels
external issueThe root cause is with an external component that needs a fix or workaroundThe root cause is with an external component that needs a fix or workaround
Type
Projects
Status
Closed