I am building an ionic project for my final year project, and suddenly my laptop got a short circuit. So right now I'm developing back my project through multiple computers/laptop, but my project seems cannot shows it output. Every time I did ionic serve, it is throwing an error saying Runtime Error: Cannot find module "@angular/core/src/view/util". I've already google about this but there is no answer until now even there is one similar question with me, it still cannot solve this problem. Can anyone help me in this?
2 Answers
Search in the project @angular/core/src/view/util and substitute it with @angular/core. This is probably a problem caused by the auto-importer, since it randomly imports the symbol by a point where it's exported. But you should never and never again import something from a src folder!
2 Comments
Zee
I change
import { resolveDefinition } from '@angular/core/src/view/util'; to import { resolveDefinition } from '@angular/core';.. but it appears as errorZee
wait.. I found the problem.. it because I used
resolveDefinition(err) instead of resolve(err)..Anyway, thank you for all the suggestions..
npm installat the project path in terminal??npm installandremove '/src/util' from your ts importnpm installbut did not do the remove/src/utilfrom ts import as I didn't understand which one of the ts part./src/utilis declared and if you are really using it.