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.

Update Ionic 2 example to RC.0

See original GitHub issue

Current behavior

Readme explains bootstrapping for Ionic Beta

Expected/desired behavior

Readme explains bootstrapping for Ionic RC

Edit: Trying to put TranslateModule.forRoot() into imports in app.module.ts will kill the ngc.

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
danielgolubcommented, Sep 29, 2016

On my side it writes: [16:58:58] Error: Module /node_modules/ng2-translate/ng2-translate.js does not export TranslateLoader (imported by /.tmp/app/app.module.js)

I did the following in app.model.ts:

import { TranslateModule, TranslateLoader, TranslateStaticLoader } from 'ng2-translate/ng2-translate';
imports: [
    BrowserModule,
    HttpModule,
    TranslateModule.forRoot({
        provide: TranslateLoader,
        useFactory: (http: Http) => new TranslateStaticLoader(http, '/assets/i18n', '.json'),
        deps: [Http]
    }),
    IonicModule.forRoot(MyApp)
],
exports: [BrowserModule, HttpModule, TranslateModule],
4reactions
ocombecommented, Sep 29, 2016

Yes, it’s definitely on my todo list 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to update to Ionic 4 Rc-1 to RC-2?
I trying to find a way to update Ionic Framework from version Rc-1 to Rc-2. I am new at this so can one...
Read more >
Example of Ionic's Updating Feature - Raymond Camden
Confirm you want to do the update, and then just stand back. The CLI will grab the bits and take care of everything....
Read more >
Downgrade Ionic Framework Version: 2.0.0-rc.3 to beta
I am using Ionic 2 , and would like to downgrade the Ionic Framework Version: 2.0.0-rc.3 to the beta version. ionic info Your...
Read more >
Upgrade the existing Ionic 4 app to Ionic 5 and Add New Feature
Step #2. Go to the newly cloned Ionic app. cd ionic-tutorial. Step #3. Install all require NPM and run every required NPM ...
Read more >
How To Update Angular CLI To Latest Version
If you are using Angular material You have to update it as well using ng update command. ng update @angular/material. The Angular latest ......
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