To have it working, every nx shared lib should have the following Typescript options enabled:Į.g. Expected Behaviorįind all references and Rename features should work in VS Code throughout all the nx monorepo Typescript subprojects. That's rather not a bug of nx per se, but the initial configuration bug/improvement. It is not reproducible in WebStorm, which perhaps uses another way of reference discovery in a workspace. This issue was described in this Typescript ticket and fixed within this one. As a consequence, we cannot rename the entity throughout the workspace.Īs far as I understood, it happens due to separate Typescript projects we have for apps and libs, and due to the fact, VS Code relies on the Typescript server while identifying references. in a fresh new angular-nest nx monorepo VS Code cannot find all references to the Message interface defined in api-interfaces.ts. VS Code cannot discover references to shared entities that are defined in an nx lib.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |