intlify / nuxt3

Nuxt 3 Module for vue-i18n-next
MIT License
202 stars 19 forks source link

Installation breaks nuxt dev #22

Closed kmilogp8496 closed 7 months ago

kmilogp8496 commented 2 years ago

hi, I'm getting this error on windows, after installing "@intlify/nuxt3": "^0.1.8" package

I tried on a fresh project on Stackblitz, and there is no problem there.

I'm running windows 11 Version 21H2, Node v14.17.3, and getting the errors with the same setup that Stackblitz

 WARN  [worker] Named export 'provider' not found. The requested module 'std-env' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'std-env';
const { provider, isWindows } = pkg;

  import { provider, isWindows } from 'std-env';
  ^^^^^^^^
  SyntaxError: Named export 'provider' not found. The requested module 'std-env' is a CommonJS module, which may not support all module.exports as named exports.
  CommonJS modules can always be imported via the default export, for example using:

  import pkg from 'std-env';
  const { provider, isWindows } = pkg;

  at ModuleJob._instantiate (internal/modules/esm/module_job.js:120:21)
  at async ModuleJob.run (internal/modules/esm/module_job.js:165:5)
  at async Loader.import (internal/modules/esm/loader.js:177:24)
  at async Object.loadESM (internal/process/esm_loader.js:68:5)

Thanks for the amazing work.