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
Cannot find module from ./node_modules #8807
Comments
And change import statement to import assign from "object-assign"; solves this problem. |
Is there any way to ignore |
declare module "the-module-name"; Which package is missing type definitions? I'm working on a tool to generate these quasi-automatically and am interested to try it out |
Thanks for quick response! Should I declare it in I am searching for quick solution for situation where I can not find typings, writing them from scratch is not what I expect. I can not find typings for |
Sorry, that syntax is specific to TS2.0. It doesn't matter where you place the file as long as it's part of your compilation. In pre-2.0 you can write the equivalent declare module "react-cookie" {
var x: any;
export = x;
} |
Don't know if this is a expected bahaviour ? I thought loading node modules should be OK?
TypeScript Version:
1.8.0, 1.8.0-beta, also in 1.9.0-dev.20160217
Install
so we will have
node_modules/object-assign/index.js
installed.Config
Code
Expected behavior:
should load the module from
node_modules/object-assign
Actual behavior:
The text was updated successfully, but these errors were encountered: