intlify / intlify/nuxt3

NuxtI18n not starting

Open
#5 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
204
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.