geomagnetism icon indicating copy to clipboard operation
geomagnetism copied to clipboard

Could not find a declaration file for module 'geomagnetism'.

Open xnior opened this issue 1 year ago • 1 comments

After npm install in Angular the system says. Could not find a declaration file for module 'geomagnetism'. 'node_modules/geomagnetism/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/geomagnetism if it exists or add a new declaration (.d.ts) file containing declare module 'geomagnetism';

The error occur when try to import. `import * as geomagnetism from 'geomagnetism';``

xnior avatar Jan 17 '24 19:01 xnior

I found the error just the developer to: declare module "geomagnetism"

After npm install in Angular the system says. Could not find a declaration file for module 'geomagnetism'. 'node_modules/geomagnetism/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/geomagnetism if it exists or add a new declaration (.d.ts) file containing declare module 'geomagnetism';

The error occur when try to import. `import * as geomagnetism from 'geomagnetism';``

xnior avatar Jan 17 '24 20:01 xnior