webpack-contrib / i18n-webpack-plugin

[DEPRECATED] Embed localization into your bundle
MIT License
318 stars 74 forks source link

ReferenceError: __ is not defined #30

Closed rafaelmaruta closed 6 years ago

rafaelmaruta commented 7 years ago

I updated to webpack 2.2 stable version yesteday and later I npm installed the i18n-webpack-plugin, but it threw the warning "compile.parser is deprecated" in node, so I cloned the plugin from repository which apparently has the correction. After putting a "(" char in the line 86 because of an error, it now throws the error in the browser:

ReferenceError: __ is not defined

rafaelmaruta commented 7 years ago

@sokra can u help me plz?

josemigg commented 7 years ago

did you fix it? I'm having the same issue

rafaelmaruta commented 7 years ago

No, I don't

alexander-akait commented 7 years ago

@rafaelmaruta can you create minimal reproducible test repo?

kerstomaat commented 7 years ago

Are you using eslint as a preloader? I fixed a similar error by adding __ as a global in eslintconfig

alexander-akait commented 7 years ago

@rafaelmaruta @josemigg friendly ping. Can your create minimal reproducible test repo?

rafaelmaruta commented 6 years ago

Sorry, I didn't receive the message. Only the npm version was broken, the github version was working fine.