Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Vite v3.0.6 failed to bundle fluent-vue #9652

Closed
7 tasks done
hongquan opened this issue Aug 12, 2022 · 1 comment · Fixed by #9653
Closed
7 tasks done

Vite v3.0.6 failed to bundle fluent-vue #9652

hongquan opened this issue Aug 12, 2022 · 1 comment · Fixed by #9653
Labels
p2-edge-case Bug, but has workaround or limited in scope (priority) regression The issue only appears after a new release

Comments

@hongquan
Copy link

Describe the bug

I have a Vue3-based project where I use fluent-vue. Vite 3.0.6 fails to build my project with this error:

Error: 'createFluentVue' is not exported by node_modules/fluent-vue/dist/prod/index.global.js

Vite 3.0.5 and older work well.

Sample project to reproduce the bug: https://github.com/hongquan/vietnam-personal-id (demo/vite branch).

Reproduction

https://github.com/hongquan/vietnam-personal-id

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
    Memory: 2.84 GB / 11.59 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 18.7.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.15.0 - /usr/bin/npm
  Browsers:
    Chrome: 104.0.5112.79
    Firefox: 103.0.2
  npmPackages:
    @vitejs/plugin-vue: ^3.0.0 => 3.0.1 
    vite: ^3.0.6 => 3.0.6

Used Package Manager

yarn

Logs

No response

Validations

sapphi-red added a commit to sapphi-red/vite that referenced this issue Aug 12, 2022
@sapphi-red sapphi-red added p2-edge-case Bug, but has workaround or limited in scope (priority) regression The issue only appears after a new release labels Aug 12, 2022
@sapphi-red
Copy link
Member

For a workaround, add the following entry to resolve.alias.

{
  'fluent-vue': path.resolve(__dirname, 'node_modules/fluent-vue/dist/index.mjs')
}

@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
p2-edge-case Bug, but has workaround or limited in scope (priority) regression The issue only appears after a new release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants