Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

New Vite 2.5.x breaks Vuex-ORM package #4636

Closed
7 tasks done
mllull opened this issue Aug 17, 2021 · 2 comments
Closed
7 tasks done

New Vite 2.5.x breaks Vuex-ORM package #4636

mllull opened this issue Aug 17, 2021 · 2 comments

Comments

@mllull
Copy link

mllull commented Aug 17, 2021

Describe the bug

With upgrading Vite from 2.4.4 to 2.5.0 (even with beta.0), the Vuex-ORM package stopped working as expected.

The issue is on Vuex-ORM model fields, it loses all fields except $id.

I already know that Vuex-ORM is an external package from Vute/Vite.

Reproduction

Using Vite 2.4.4, it works as expected:
https://codesandbox.io/s/spring-https-vn0nt

Using Vite 2.5.0, you can see that no items from models are shown:
https://codesandbox.io/s/wandering-shadow-emfn2

System Info

System:
    OS: Linux 5.13 Arch Linux
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
    Memory: 6.25 GB / 15.54 GB
    Container: Yes
    Shell: 5.1.8 - /bin/bash
  Binaries:
    Node: 14.16.0 - /usr/local/bin/node
    Yarn: 1.22.11 - /usr/bin/yarn
    npm: 7.20.0 - /usr/local/bin/npm
  Browsers:
    Chromium: 92.0.4515.131
    Firefox: 91.0
  npmPackages:
    @vitejs/plugin-vue: ^1.3.0 => 1.4.0 
    vite: 2.4.4 => 2.4.4

Used Package Manager

yarn

Logs

No response

Validations

@haoqunjiang haoqunjiang added the regression The issue only appears after a new release label Aug 17, 2021
@haoqunjiang
Copy link
Member

Please add "useDefineForClassFields": false to compilerOptions in the tsconfig.json.

@haoqunjiang haoqunjiang removed pending triage regression The issue only appears after a new release labels Aug 17, 2021
@mllull
Copy link
Author

mllull commented Aug 17, 2021

@sodatea Thanks!! Now it's working 😊

@mllull mllull closed this as completed Aug 17, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants