“error TS2694: Namespace 'angular' has no exported member 'xxx'” after upgrading @types/angular

后端 未结 3 1428
孤街浪徒
孤街浪徒 2021-01-13 08:54

After upgrading angular and @types/angular version to version 1.6.x I have lots of TS2694 errors:

error TS2694: Namespace \'angular\' has no exported member          


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-13 09:30

    I had to uninstall all node modules and install them again, for uninstall type rm -r node_modules clean-node-modules for install just type npm install

提交回复
热议问题