EvalError: Code generation from strings disallowed for this context

https://remix-i18n.pages.dev/zh/blog

EvalError: Code generation from strings disallowed for this context
at Function (<anonymous>)
at o (worker.mjs:9093:10)
at g (worker.mjs:9130:97)
at b (worker.mjs:9133:26)
at Index (worker.mjs:9405:55)
at processChild (worker.mjs:6202:22)
at resolve (worker.mjs:6134:13)
at ReactDOMServerRenderer2.render (worker.mjs:6493:30)
at ReactDOMServerRenderer2.read (worker.mjs:6440:37)
at renderToString2 (worker.mjs:6889:35)

i’ve tried and works locally… however deployed errored

using frenchkiss: frenchkiss.js/compiler.js at master · koala-interactive/frenchkiss.js · GitHub

    "wrangler": "^0.0.0-8ab7d2e"

Hey,

As the error says code generation is not allowed in Functions/Pages. So using eval or new Function is not allowed. This is done for security reasons.

I would suggest looking for an alternative library.