Error TS2307: Cannot find module 'path'


#1

x I am following an angular tutorial on youtube and I get t error ts2307 when compiling.

node and angular version 5.6
all updated

I also import the modules


the project is “Angular 5 CRUD Application Using Firebase” a youtube tutorial

I never had this error before, and this isnt my first time using angular, so why does all of a sudden angular not find my modules?
or is this simply because the guy in the tutorial uses Angular 5 and my version is 6 ?


#2

Try tns platform remove android or tns remove ios and then rebuild. If firebase was newly added, you may need to rebuild the platform. Sometimes when I add new files I have to do a platform remove and rebuild.