-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
フロントエンド: Remixでのi18nの調査と検証 #195
Labels
Low
Priority Low
Comments
参考になりそうなブログ記事を発見!! |
https://github.com/sergiodxa/remix-i18next |
↑ と思ったらエラーになった・・・。 |
エラー内容 (node:20938) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 end listeners added to [ReadStream]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
9:44:01 PM [vite] server restarted.
9:44:08 PM [vite] Internal server error: Cannot read properties of undefined (reading 'status')
at Object.toNodeRequest (/Users/harukikondo/git/toban/node_modules/@remix-run/dev/dist/vite/node-adapter.js:69:28)
at nodeHandler (/Users/harukikondo/git/toban/node_modules/@remix-run/dev/dist/vite/plugin.js:869:35)
at /Users/harukikondo/git/toban/node_modules/@remix-run/dev/dist/vite/plugin.js:871:15
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides)
../../node_modules/i18next-fs-backend/esm/readFile.js:8:20:
8 │ var fs = !isDeno ? (await import('node:fs')).default : undefined;
╵ ~~~~~
✘ [ERROR] Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides)
../../node_modules/i18next-fs-backend/esm/writeFile.js:7:20:
7 │ var fs = !isDeno ? (await import('node:fs')).default : undefined;
╵ ~~~~~
9:44:08 PM [vite] error while updating dependencies:
Error: Build failed with 2 errors:
../../node_modules/i18next-fs-backend/esm/readFile.js:8:20: ERROR: Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides)
../../node_modules/i18next-fs-backend/esm/writeFile.js:7:20: ERROR: Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides)
at failureErrorWithLog (/Users/harukikondo/git/toban/node_modules/vite/node_modules/esbuild/lib/main.js:1472:15)
at /Users/harukikondo/git/toban/node_modules/vite/node_modules/esbuild/lib/main.js:945:25
at /Users/harukikondo/git/toban/node_modules/vite/node_modules/esbuild/lib/main.js:1353:9
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
デモサイト見つけた! https://remix-i18n.fly.dev/?lng=ja コードは以下の通り |
https://sergiodxa.com/tutorials/add-i18n-to-a-remix-vite-app |
https://github.com/mashharuki/remix-vite-i18next これが移植できれば良さそう。 |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i18n
Description
Notes
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: