angulartics2: `ERROR in src/app/app.module.ts(9,46): error TS2307: Cannot find module 'angulartics2/routerlessmodule'`

  • I’m submitting a … [x] bug report [ ] feature request [ ] question about the decisions made in the repository

  • What is the current behavior?

When using https://github.com/angulartics/angulartics2#using-without-a-router in a project I get on ng serve:

webpack: Compiling...
ERROR in src/app/app.module.ts(9,46): error TS2307: Cannot find module 'angulartics2/routerlessmodule'. 72% optimizing                                                          73% basic module optimization                                                                                                                                                 Date: 2018-02-06T18:38:15.063Z • Hash: a3b8b355bad1b9c8b553 • Time: 3152ms
3 unchanged chunks
chunk {main} main.bundle.js (main) 238 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 11.3 MB [initial] [rendered]

webpack: Compiled successfully.

Interestingly enough this still compiles and can normally be run.

  • What is the expected behavior?

No error message, still working.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (3 by maintainers)

Most upvoted comments

Make sure you’re using typescript > 2.6.x