Angular 9->10 migration. TypeError: core_1.virtualFs.createSyncHost is not a function

Viewed 613

After ng upgrade serve runs into an error:

TypeError: core_1.virtualFs.createSyncHost is not a function

any ideas of how to fix it?

2 Answers

I had the exact same error after upgrading. Removing the node_modules and re-installing the dependencies fixed the problem:

# with yarn
rm -rf node_modules && yarn 

# with npm
rm -rf node_modules && npm install

Try to find out the changes in your Application during the upgrade process through the below link:

https://update.angular.io/#9.0:10.0l3

Check winch of this feature are using already in your app that causes to this error during your migration process.

Related