Hi,
I wanted to use ng-modules in my home.html when adding this code line to my home.ts angular.module(‘starter.homeside’, [])
But I got this error:
TS2686: ‘angular’ refers to a UMD global, but the current file is a module. Consider adding an import instead.
So I added import * as _angular from “angular”;
declare global {
const angular: typeof _angular;
}
to my home.ts
But when running ionic serve I always get this error: Uncaught (in promise): ReferenceError: angular is not defined
I tried adding angular dependencies to my .json file and running npm install angular whatever but the error won’t disapear.
Has anyone faced the same problem and has tips what I could try to solve the problem?