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

[Bug]: Vue3 project build / preview with vite, Date cell type throws exception #10721

Open
colcat opened this issue Jan 12, 2024 · 4 comments
Open
Labels
bug Cell type: Date Reported Vue 3 Issues regarding the @handsontable/vue3 wrapper

Comments

@colcat
Copy link

colcat commented Jan 12, 2024

Describe the bug

  1. A simple vue3 project with only one simple handsontable component in one single page
  2. build or preview with vite 5.0
  3. Click on the Date cell.
  4. Handsontable throws exception: n.isMoment is not a function.

It seems the bug is related to moment.js component.

Video/Screenshots

handsontable
handsontable2

Provide a link to the demo with the bug reproduction

No response

Handsontable version

14.0.0

Framework version

Vue 3.3.11, vite 5.0.10, moment 2.29.4

Your environment

Google Chrome 120.0

@colcat colcat added the bug label Jan 12, 2024
@AMBudnik
Copy link
Contributor

Thank you for sharing the issue report @colcat

We have reported the same issue case but for React. I will inform the team that the same happens for Vue.

I will inform you as soon as we fix it.

@AMBudnik AMBudnik added Cell type: Date Vue 3 Issues regarding the @handsontable/vue3 wrapper Reported labels Jan 12, 2024
@colcat
Copy link
Author

colcat commented Jan 19, 2024

@AMBudnik Thanks a lot.

For now, I just fix the problem by locating the o.isMoment(I), and changing it to o(I) after building.

It did work for now.

before:
image

after:
image

@tomoki-takahashi-oisix
Copy link

Could you please fix this bug? It's causing me trouble as well

@adrianszymanski89
Copy link
Contributor

Hi @tomoki-takahashi-oisix

Apparently, this issue was solved in Handsontable 14.1.0. Please confirm if the problem is gone on your side with this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Cell type: Date Reported Vue 3 Issues regarding the @handsontable/vue3 wrapper
Projects
None yet
Development

No branches or pull requests

4 participants