-
Notifications
You must be signed in to change notification settings - Fork 21
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: Can't find module "ng2-typeahead'. #17
Comments
I have the same problem. |
Facing the same issue. |
I've got the same probleam. Any solution? |
My coworker has solved the probleam. You need create a Typescript file (.ts) named index.ts inside the \node_modules\ng2-typeahead directory and put this content inside: export * from './src/ng2-typeahead'; it works to us. I hope it can help you! |
Adding a new file in node_modules is not the recommended way. You can also simply import the module like this: |
Hi All,
An issue regarding adding "ng2-typeahead' module.
I have added "ng2-typeahead' through npm and its properly added in my node_modules folder but
when I do :
import { Typeahead } from 'ng2-typeahead';
Error: Can't find module "ng2-typeahead'.
It's only working when I do:
import { Typeahead } from '../../../node_modules/ng2-typeahead/src/ng2-typeahead';
Can any body guide me why I need to give path from node_modules ?
The text was updated successfully, but these errors were encountered: