question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in :0:0 caused by: No provider for ActivatedRoute!

Maybe it’s version conflict.

Ionic dependencies:

"@angular/common": "2.2.1",
    "@angular/compiler": "2.2.1",
    "@angular/compiler-cli": "2.2.1",
    "@angular/core": "2.2.1",
    "@angular/forms": "2.2.1",
    "@angular/http": "2.2.1",
    "@angular/platform-browser": "2.2.1",
    "@angular/platform-browser-dynamic": "2.2.1",
    "@angular/platform-server": "2.2.1",
    "@angular/router": "3.0.0",
    "@ionic/storage": "1.1.7",
    "ionic-angular": "2.0.0-rc.5",
    "ionic-native": "2.2.11",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26",
    "sw-toolbox": "3.4.0",
    "angular2-token": "0.2.0-beta.7"

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jmargolesecommented, Sep 8, 2017

This still does not load with Ionic 3. @version 0.2.0-beta.12

Does anyone have a working solution for Ionic 3? (This version still tries to load from @angular/router which doesn’t exist.)

thx

typescript: node_modules/angular2-token/lib/angular2-token.service.d.ts, line: 1 Cannot find module '@angular/router'. L1: import { ActivatedRoute, Router, CanActivate } from '@angular/router';

0reactions
hrangelcommented, Feb 1, 2019

Just made a PR with the updated version of angular-token: #488

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Errors: Learn to Solve Common Mistakes
Solve common mistakes that can occur when building apps. View our list of potential build errors then check out our Ionic Documentation for...
Read more >
10 Common Ionic Problems & Error Messages (And How to ...
You have created a Component and want to use it within your view. The problem is, by default the Ionic generated components are...
Read more >
Ionic framework compile error (Components not recognized)
Which ionic version is the code written in? – Misha Mashina. Feb 5 at 7:24 · I have the same error on VS...
Read more >
bug: slot error not working properly in ion-item in some cases ...
The error slot with ion-item is intended to be used with a form and currently our only direct integration is with Angular Forms....
Read more >
Ionic 2 error reporting tools
With Ionic 2 Release Candidate 3 the team at Ionic have improved the error reporting tools for developers which means that any time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found