-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error TS2664: Invalid module name in augmentation #9748
Comments
the declaration A declaration of the form |
Thanks for the quick answer. Seems obvious in retrospect. Perhaps you could update the What's New documents or make sure it's included in the final documentation? It would also be nice if the error message were more helpful... The answer was alluded to by the use of declarations.d.ts. Is that the recommended name? Where's the best place to put this file in 2.0? Are you still recommending the "typings" folder? |
Ah, waste some much time to find out this issue. +1 for update What's New documents. |
@muzuiget, Yeah, humdinger. To +1 use the new "add your reaction" feature in GitHub. |
I am getting a similar error:
I have asked this on StackoverFlow, too: TypeScript custom declaration files for untyped npm modules It would be nice if someone can shed some light on that. |
@mhegazy Thanks for that link on augmentation, the errors really don't help much, until Googling landed me here. I |
Description
The What's new in TypeScript wiki page and the Announcing TypeScript 2.0 Beta blog posting
both indicate that TypeScript 2.x supports Shorthand ambient module declarations, yet when I
attempt to use
declare module 'jsonschema';
for thejsonschema
npm package I getThere is a GitHub issue (#8518) that recommends getting the latest nightly build, but I
have the latest and still get the problem. How can this be resolved?
Steps to reproduce
Navigate to a parent folder
Clone repo
cd
to repoInstall packages
Build project
Result
Output
The text was updated successfully, but these errors were encountered: