Page 1 of 1

PowerSwitch 2020 Fall and TypeScript

Posted: Thu Jan 21, 2021 5:03 pm
by foxpalace
Hi,

am I doing something wrong or is there a little Bug (FeatureRequest?).
When I use "npm install something" I loose the code completion for the Switch-Commands - is it the same with you?

I open the Terminal in VSC and i am located in my project where the main.ts is (done like here is noticed - Point 4 - https://www.enfocus.com/manuals/Develop ... step3.html)
After this VSC show Problems where no Problem is - the Code will work, transpile too.

Re: PowerSwitch 2020 Fall and TypeScript

Posted: Thu Jan 21, 2021 6:31 pm
by freddyp
Yes, that is unfortunately a known problem that will be solved in the 2021 release.

Easy workaround: after having installed another package, type

Code: Select all

npm i