If you know how to fix the issue, make a pull request instead.
@types/xxxx package and had problems.Definitions by: in index.d.ts) so they can respond.If you do not mention the authors the issue will be ignored.
Could you explain your specific use case that caused this issue?
@ziyaddin I have this same error. I'm running an Angular 8 app. I run:
npm i --save-dev @types/googlemaps
Then, in a component file, I include:
import {} from 'googlemaps';
I receive the error:
...'node_modules/@types/googlemaps/index.d.ts' is not a module.
Me too
@RobertAKARobin @alambertt try the following steps:
npm install @types/googlemaps --save-dev"types": ["googlemaps"] in tsconfig.app.json fileimport {} from 'googlemaps'; from your code.@ziyaddin
This also worked for me on Angular 8. Thank you so much!
@RobertAKARobin @alambertt try the following steps:
npm install @types/googlemaps --save-dev- add
"types": ["googlemaps"]intsconfig.app.jsonfile- remove
import {} from 'googlemaps';from your code.
I wrote this in the first line of my .ts and worked 100%
/// <reference types="@types/googlemaps" />
@RobertAKARobin @alambertt try the following steps:
npm install @types/googlemaps --save-dev- add
"types": ["googlemaps"]intsconfig.app.jsonfile- remove
import {} from 'googlemaps';from your code.I wrote this in the first line of my .ts and worked 100%
/// <reference types="@types/googlemaps" />
Where did you added exactly?
@RobertAKARobin @alambertt try the following steps:
npm install @types/googlemaps --save-dev- add
"types": ["googlemaps"]intsconfig.app.jsonfile- remove
import {} from 'googlemaps';from your code.I wrote this in the first line of my .ts and worked 100%
/// <reference types="@types/googlemaps" />Where did you added exactly?
index.html
---add "types": ["googlemaps"] in tsconfig.app.json file ---
in section "compilerOptions": work for me
Most helpful comment
@RobertAKARobin @alambertt try the following steps:
npm install @types/googlemaps --save-dev"types": ["googlemaps"]intsconfig.app.jsonfileimport {} from 'googlemaps';from your code.