GithubHelp home page GithubHelp logo

Comments (8)

ocombe avatar ocombe commented on May 22, 2024

Hello,
this has nothing to do with ng2-translate, see: angular/angular#5614

from core.

guillaumeleone avatar guillaumeleone commented on May 22, 2024

Same problem.

I don't understand, because in this post angular/angular#5755, it say there is a problem with es6-shim lib.

But in your showcase project, you use this lib.

from core.

ocombe avatar ocombe commented on May 22, 2024

Maybe it's a question of version of the libs?
If you can make a project with the problem I'll check it out.

from core.

guillaumeleone avatar guillaumeleone commented on May 22, 2024

Oh thank you. Here an example with this problem: https://github.com/guillaumeleone/ng2-cli-translate
It happened when I added TRANSLATE_PROVIDERS in bootstrap file.
(The template was generated with angular-cli)

from core.

qsahmed avatar qsahmed commented on May 22, 2024

I have the same issue,

import {HTTP_PROVIDERS} from 'angular2/http';
import {TRANSLATE_PROVIDERS} from 'ng2-translate/ng2-translate';
import {bootstrap} from 'angular2/platform/browser';
import {Application} from './app';
import {ReviverService} from "../service/reviver";

bootstrap(Application, [HTTP_PROVIDERS, TRANSLATE_PROVIDERS, ReviverService]);

ng2_translate_1.TRANSLATE_PROVIDERS is undefined.

from core.

ocombe avatar ocombe commented on May 22, 2024

@qsahmed check the version of ng2-translate that you use :) the last one is 1.11.0

from core.

qsahmed avatar qsahmed commented on May 22, 2024

Thanks for the quick reply.
I am using 1.11.0
"karma-phantomjs-launcher": "^0.1.2", "ng2-translate": "^1.11.0", "phantomjs": "^1.9.8",

from core.

kemsky avatar kemsky commented on May 22, 2024

This error message is a consequence, original error is that injector could not resolve dependency. Almost impossible to trace unresolved component without putting console.logs into framework code (_constructDependencies).

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.