question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vite: module does not provide an export named 'i18nVue'

See original GitHub issue

Also: after upgrade from 0.2.1 to 0.4.1:

Uncaught SyntaxError: The requested module '/node_modules/.vite/laravel-vue-i18n.js?v=4bc78461' does not provide an export named 'i18nVue'

This happened with v3 also, rolling back to 0.2.1 it works again.

_Originally posted by @ibrunotome in https://github.com/xiCO2k/laravel-vue-i18n/issues/3#issuecomment-1008974849_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
xiCO2kcommented, Jan 12, 2022

yes the problem was the change to compile with “node12”

{
  "compilerOptions": {
    "target": "es2015",
    "module": "node12",
    "outDir": "dist",
    "sourceMap": true,
    "declaration": true,
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true,
    "skipDefaultLibCheck": true
  },
  "files": [
    "./node_modules/@types/node/index.d.ts"
  ],
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ],
  "rules": {
    "no-console": false
  }
}

That’s needed to have the defaultResolver with the import (introduced in v0.3.0).

Trying to find a way to have it working well with vite and webpack.

Will keep you posted.

0reactions
xiCO2kcommented, Jan 19, 2022

Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The requested module does not provide an export named ...
Reporting a bug? In my vite + vue 3 project, I import i18n like this import VueI18n from "vue-i18n"; But I then get...
Read more >
vite does not provide an export named - You.com - You.com
Uncaught SyntaxError: The requested module '/node_modules/.vite/laravel-vue-i18n.js?v=4bc78461' does not provide an export named 'i18nVue'.
Read more >
Vite Migration: error does not provide an export - Stack Overflow
I'm trying to migrate from vue-cli to Vite using Vue 2.0. I've some JavaScript ...
Read more >
Optimization - Vue I18n - Intlify
The use of this ES Module means that all locale messages have to pre-compile to Message functions. what this means it improves performance ......
Read more >
@intlify/vite-plugin-vue-i18n - npm
When this plugin is installed, Vue I18n can only use the Composition API, and if you want to use the Legacy API, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found