Skip to content
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

Typescript cannot resolve modules from ember-cli addons #73

Closed
guangda-prosperworks opened this issue Sep 22, 2017 · 1 comment
Closed

Comments

@guangda-prosperworks
Copy link

When using ember-cli addons, even you've installed type definition file, typescript still cannot find the module.
For example, when using ember-cli-htmlbar-inline-precompile modules. Even you declare a module htmlbar-inline-precomple in your type definition file, since node_modules/htmlbar-inline-precompile does not exist, typescript cannot resolve it correctly.

Here's a working sample: https://github.com/inkless/ember-test-app
Type definition is here:
https://github.com/inkless/ember-test-app/blob/master/app/types/ember-shim.d.ts
Test code is here: https://github.com/inkless/ember-test-app/blob/master/tests/integration/components/apple-pie/component-test.ts

@guangda-prosperworks
Copy link
Author

Close due to using wrong account...

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

No branches or pull requests

1 participant