Search code examples
typescriptpluginsvisual-studio-codepeer-dependencies

How do you fix peerDependency when building a TS plugin in VSCode


I am currently building a plugin using TS which has some peer dependencies. I had to add install-peers-cli to make sure it installs the peers without changing package.json and the build works fine with no issues.

Now the issue is that inside of VSCode, I am still getting the following for all of my peer dependencies.

Cannot find module 'moment-timezone'.ts(2307)

Just wondering if there is a way to fix this issue.


Solution

  • You can use this one...

    npm i install-peers -D