You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mpowa705
changed the title
Generated rollup\translations-loader-plugin.js not friendly to Windows
Generated rollup\translations-loader-plugin.js not friendly to Windows developers
Sep 15, 2024
The generated line in rollup\translations-loader-plugin.js
if (id.endsWith('.json') && id.includes(path.resolve(__dirname, '../src/translations'))) {
Does not work on Windows due to
'/'
in the id vs. the'\'
in the __dirname on that system.Changing this to:
id.endsWith('.json') && path.normalize(id).includes(path.resolve(__dirname, '..', 'src', 'translations'))
Resolves the issue on my Windows machine.
This should be changed in the webpack.config.js to ensure this works for future developers on Windows.
Will put up a PR shortly.
The text was updated successfully, but these errors were encountered: