Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Attempted to compile "google.maps" as an external module, but it looks like a global module. #505

Closed
bharadwaj509 opened this issue May 16, 2016 · 5 comments
Labels

Comments

@bharadwaj509
Copy link

The following is the typings.json file

{
"name": "queuing-simulator",
"version": false,
"dependencies": {
"google.maps": "registry:dt/google.maps#3.20.0+20160414124451"
}
}

The above was working fine in windows. But I moved to Ubuntu 16.04. I installed typings globally.
When I am trying to install the dependencies mentioned above, I am getting the following error.

"Attempted to compile "google.maps" as an external module, but it looks like a global module."

Please help me with this....

@blakeembrey
Copy link
Member

Because it is a global module. Use globalDependencies, not dependencies.

@bharadwaj509
Copy link
Author

Hi, Thanks very much... But when I used the same json, typings used to install "browser.d.ts" in typings folder. But right now it is not doing so. Could help me how to do that... (install browser.d.ts)

@blakeembrey
Copy link
Member

You've updated to 1.0. Please look at the docs and README. Here's how you could set it up to output browser: https://github.com/typings/typings/blob/master/docs/faq.md#where-do-the-type-definitions-install.

@blakeembrey
Copy link
Member

The operating system is irrelevant. You're using two different Typings versions. Update both to 1.0, or downgrade both to 0.8.

@bharadwaj509
Copy link
Author

Sure thanks very much...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants