NuxtI18n not starting

オープン
#5 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript

調査の方向性

まず、issue に記載されている package.json の設定と buildModules エントリを使って、npm run dev で失敗を再現します。node_modules/@intlify/shared/dist/shared.esm-bundler.js:192 にある SSR エラーを調査し、plugin フォルダーの構成と比較します。Nuxt がこのモジュール読み込みエラーなしで起動すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi,
I've just installed "@intlify/nuxt3": "^0.1.2" with "nuxt3": "latest" and added the buildModules: ["@intlify/nuxt3"].
When I start Nuxt with npm run dev, I got an error:

(node:10922) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
Server Side Rendering Error: ./node_modules/@intlify/shared/dist/shared.esm-bundler.js:192
export { assign, createEmitter, escapeHtml, format, friendlyJSONstringify, generateCodeFrame, generateFormatCacheKey, getGlobalThis, hasOwn, inBrowser, isArray, isBoolean, isDate, isEmptyObject, isFunction, isNumber, isObject, isPlainObject, isPromise, isRegExp, isString, isSymbol, makeSymbol, mark, measure, objectToString, toDisplayString, toTypeString, warn };

I have the same problem when I copy the plugin code in plugin folder of nuxt and use vue-i18n-next

Thanks
JB

主要言語
TypeScript
スター
202
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

intlify/nuxt3 のほかの issue

intlify/nuxt3 の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。