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

bug(npm): TypeScript cannot find module 'angularfire2' #23

Closed
jeffbcross opened this issue Jan 26, 2016 · 3 comments
Closed

bug(npm): TypeScript cannot find module 'angularfire2' #23

jeffbcross opened this issue Jan 26, 2016 · 3 comments
Assignees
Milestone

Comments

@jeffbcross
Copy link
Contributor

I thought setting main in package.json to dist/angularfire2.js would help TypeScript know where the main module was. Instead, I have to import angularfire2/dist/angularfire2 in my app.

@jeffbcross jeffbcross modified the milestones: alpha.3, alpha.5 Jan 26, 2016
@jeffbcross jeffbcross changed the title TypeScript cannot find module 'angularfire2' bug(npm): TypeScript cannot find module 'angularfire2' Feb 2, 2016
@jeffbcross
Copy link
Contributor Author

Apparently I need to set the typings field of package.json to point to the main entry point of the app.

package.json:

{
  "typings": "angularfire.d.ts"
}

@jeffbcross jeffbcross self-assigned this Feb 2, 2016
@PanayotCankov
Copy link

The "typings" should point to a .d.ts but I think it moved to "es6" now and my tsc won't find the "angularfire2".

By default "tsc" will use index.d.ts in the package, you can consider adding index.d.ts in the root of the package with the angularfire2 types.

@wahmelon
Copy link

hey sorry I'm super new to development. which package.json should be modified?

thanks heaps,

max

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

3 participants