Skip to content

[rush] set public-hoist-pattern but vs code not detect? #3324

Closed
@leohxj

Description

@leohxj

I have some sub packages whose has phantom dependencies, as usually I will can public-hoist-pattern rules to use it in my apps.

I update common/config/rush/.npmrc , add the public-hoist-pattern rules then run rush update, the common/temp/node_modules have the modules who has been hoisted.

BUT, vs code does't detect those modules, it still "cannot find module or its corresponding type declarations".

PS: as workaround, I manually add those modules as a dependency to project's package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions