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

missing dependency i18next when using amd modules #134

Open
kuntergunt opened this issue Nov 7, 2017 · 2 comments
Open

missing dependency i18next when using amd modules #134

kuntergunt opened this issue Nov 7, 2017 · 2 comments

Comments

@kuntergunt
Copy link

The UMD version does not work for me. Error is 'i18next is not loaded'.. It has a dependency to angular defined, but i18next is missing.
May be solved by this:

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('angular', 'i18next')) :
typeof define === 'function' && define.amd ? define(['angular', 'i18next'], factory) :
(global.ngI18next = factory(global.angular));
}(this, (function (angular, i18next) { 'use strict';

@anwalkers
Copy link
Contributor

@kuntergunt Looks like rollup.js isn't supporting this. Will need to dig into it and submit a meaningful issue against their library...

There are many issues related to UMD and globals. rollup/rollup#1578

@mtorre4580
Copy link

any solution for this? , i run webpack require('ng-i18next') , and fail for this

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