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

Critical dependency: the request of a dependency is an expression #228

Closed
lenghia241 opened this issue Nov 27, 2018 · 3 comments
Closed

Comments

@lenghia241
Copy link

lenghia241 commented Nov 27, 2018

have this error when trying to import Back end from the dependency

`
./node_modules/i18next-sync-fs-backend/lib/index.js
Critical dependency: the request of a dependency is an expression

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
`
Full i18next init:

`import i18n from "i18next";

import Config from "./data/parameters.js";

import locales from "sas-translations";

const Backend = require('i18next-sync-fs-backend');

i18n
.use(Backend)
.init({
initImmediate: false,
lng: Config.locale,
fallbackLng: "fi-FI",
debug: true,
ns: ["messages", "routes"],
defaultNS: "messages",
react: {
wait: true
},
resources: locales
});

export default i18n;
`

@jamuhl
Copy link
Member

jamuhl commented Nov 27, 2018

you will need to open this issue there: https://github.com/LegNeato/i18next-sync-fs-backend

this here is not the sync backend...sorry

@lenghia241
Copy link
Author

opps sorry ab that :D

@jamuhl
Copy link
Member

jamuhl commented Nov 27, 2018

no problem...

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

2 participants