nuxt3 icon indicating copy to clipboard operation
nuxt3 copied to clipboard

build error

Open Thy3634 opened this issue 2 years ago • 1 comments

Reproduce

just build

environment

window10 21H2 node v16.14.0 @intlify/[email protected] nuxt3@latest: 3.0.0-27356801.e9128f3

terminal log out:

$ nuxi build Nuxt CLI v3.0.0-27356801.e9128f3 17:10:57

WARN Error when using sourcemap for reporting an error: Can't resolve original location of error. 17:11:03

ERROR 'handleFlatJson' is not exported by node_modules@intlify\nuxt3\node_modules@intlify\core-base\dist\core-base.esm-bundler.js, imported by node_modules\vue-i18n\dist\vue-i18n.runtime.esm-bundler.js file: E:/nut/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js:7:29 5: */ 6: import { getGlobalThis, format, makeSymbol, isPlainObject, isArray, hasOwn, isObject, isBoolean, isString, isRegExp, isFunction, assign, isNumber, warn, createEmitter, isEmptyObject } from '@intlify/shared'; 7: import { createCompileError, handleFlatJson, createCoreContext, updateFallbackLocale, resolveValue, clearDateTimeFormat, clearNumberFormat, setAdditionalMeta, NOT_REOSLVED, isTranslateFallbackWarn, isTranslateMissingWarn, parseTranslateArgs, translate, MISSING_RESOLVE_VALUE, parseDateTimeArgs, datetime, parseNumberArgs, number, getLocaleChain, setDevToolsHook } from '@intlify/core-base'; ^ 8: import { ref, getCurrentInstance, computed, watch, createVNode, Text, h, Fragment, inject, onMounted, onUnmounted, isRef } from 'vue'; 9: import { setupDevtoolsPlugin } from '@vue/devtools-api';

ERROR 'handleFlatJson' is not exported by node_modules@intlify\nuxt3\node_modules@intlify\core-base\dist\core-base.esm-bundler.js, imported by node_modules\vue-i18n\dist\vue-i18n.runtime.esm-bundler.js

at error (node_modules\rollup\dist\shared\rollup.js:158:30) at Module.error (node_modules\rollup\dist\shared\rollup.js:12423:16) at Module.traceVariable (node_modules\rollup\dist\shared\rollup.js:12808:29) at ModuleScope.findVariable (node_modules\rollup\dist\shared\rollup.js:11588:39) at FunctionScope.findVariable (node_modules\rollup\dist\shared\rollup.js:6953:38) at ChildScope.findVariable (node_modules\rollup\dist\shared\rollup.js:6953:38) at TrackingScope.findVariable (node_modules\rollup\dist\shared\rollup.js:6953:38) at BlockScope.findVariable (node_modules\rollup\dist\shared\rollup.js:6953:38) at BlockScope.findVariable (node_modules\rollup\dist\shared\rollup.js:6953:38) at BlockScope.findVariable (node_modules\rollup\dist\shared\rollup.js:6953:38)

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thy3634 avatar Mar 18 '22 09:03 Thy3634

Having the same issue on a fresh install.

E: Apparently the issue is that I was also installing my own version of vue-i18n-next and this package is using a beta version with additional features. Removing it from "package.json" did the job for me.

vis97c avatar Mar 25 '22 02:03 vis97c