在 ng upgrade
serve 运行后出现错误:
TypeError: core_1.virtualFs.createSyncHost is not a function
关于如何修复它的任何想法?
最佳答案
升级后我遇到了完全相同的错误。删除 node_modules 并重新安装依赖项解决了问题:
# with yarn
rm -rf node_modules && yarn
# with npm
rm -rf node_modules && npm install
关于javascript - Angular 9->10 迁移。 TypeError : core_1. virtualFs.createSyncHost 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63828228/