[V4] Problem loading "fs" node module with "Webpack v4.29" and "babel-loader"


#1

Using latest version of Webpack template, I am trying to implement i18next.

I have installed i18next-node-fs-backend node module, but the compilation raises the following error:

ERROR in ./node_modules/i18next-node-fs-backend/lib/index.js
Module not found: Error: Can’t resolve ‘fs’ in…

I have tried installing fs node module too, but I get the same error.

Any ideas of how can I solve it?

Thanks in advance.


#2

Apparently the backend word in i18next-node-fs-backend name says that it is Backend module and can’t be used and shouldn’t be require'ed on client side


#3

I’am using another module named i18next-xhr-backend on client side without any problem.