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
I am getting following build error even after having "svelte-i18n": "^4.0.1". Can someone please help?
error during build:
src/lib/i18n/i18n.ts (1:9): "addMessages" is not exported by "node_modules/svelte-i18n/dist/runtime.js", imported by "src/lib/i18n/i18n.ts".
file: /home/debasish/Devtools/capacitor/justanapp/src/lib/i18n/i18n.ts:1:9
1: import { addMessages, init, getLocaleFromNavigator } from 'svelte-i18n';
^
2:
3: // Import all language files
at getRollupError (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
at error (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
at Module.error (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:15655:16)
at Module.traceVariable (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:16104:29)
at ModuleScope.findVariable (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:13887:39)
at FunctionScope.findVariable (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:5306:38)
at FunctionBodyScope.findVariable (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:5306:38)
at ReturnValueScope.findVariable (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:5306:38)
at FunctionBodyScope.findVariable (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:5306:38)
at Identifier.bind (file:///home/debasish/Devtools/capacitor/justanapp/node_modules/rollup/dist/es/shared/node-entry.js:5089:40)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello friends,
I am getting following build error even after having "svelte-i18n": "^4.0.1". Can someone please help?
error during build:
src/lib/i18n/i18n.ts (1:9): "addMessages" is not exported by "node_modules/svelte-i18n/dist/runtime.js", imported by "src/lib/i18n/i18n.ts".
file: /home/debasish/Devtools/capacitor/justanapp/src/lib/i18n/i18n.ts:1:9
1: import { addMessages, init, getLocaleFromNavigator } from 'svelte-i18n';
^
2:
3: // Import all language files
Thanks,
Debasish
Beta Was this translation helpful? Give feedback.
All reactions