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
Cannot assign to read only property 'name' of function'()=>""'
TypeError: Cannot assign to read only property 'name' of function'()=>""'
at Function.assign (<anonymous>)
at L (/home/jasmin/repos/typesafe-i18n-repro/node_modules/.pnpm/typesafe-i18n@4.0.0_typescript@4.5.5/node_modules/typesafe-i18n/adapters/adapter-svelte.cjs:1:2572)
at b (/home/jasmin/repos/typesafe-i18n-repro/node_modules/.pnpm/typesafe-i18n@4.0.0_typescript@4.5.5/node_modules/typesafe-i18n/adapters/adapter-svelte.cjs:1:2608)
at Object.get (/home/jasmin/repos/typesafe-i18n-repro/node_modules/.pnpm/typesafe-i18n@4.0.0_typescript@4.5.5/node_modules/typesafe-i18n/adapters/adapter-svelte.cjs:1:2705)
at test.svelte:6:18
at Object.$$render (/home/jasmin/repos/typesafe-i18n-repro/node_modules/.pnpm/svelte@3.46.4/node_modules/svelte/internal/index.js:1745:22)
at Object.default (root.svelte:43:47)
at eval (/src/routes/__layout.svelte:23:47)
at Object.$$render (/home/jasmin/repos/typesafe-i18n-repro/node_modules/.pnpm/svelte@3.46.4/node_modules/svelte/internal/index.js:1745:22)
at root.svelte:37:45
@chloe-the-catgirl thanks for opening this issue.
Was it working in a previous version? Or are you a first time version 4.x.x user?
I'll take a deeper look at this issue in the next couple of days
Version
4.0.0
Describe the bug
When using a key in the translation called
name
, the whole object breaks and cannot be loaded anymore. Example translation:Other parts of the translation (
working
in the example case) are not affected by this.Reproduction
Repository for repro can be found here:
https://github.com/chloe-the-catgirl/typesafe-i18n-repro
The index page works, the "/test" page breaks.
Logs
Config
Additional information
No response
The text was updated successfully, but these errors were encountered: