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

[Fixed Bug] Array deconstructing error in template #31

Open
meatjam opened this issue Jan 14, 2022 · 2 comments
Open

[Fixed Bug] Array deconstructing error in template #31

meatjam opened this issue Jan 14, 2022 · 2 comments
Labels
bug Something isn't working contribution welcome Good for newcomers Fixed

Comments

@meatjam
Copy link

meatjam commented Jan 14, 2022

My devDependencies:
image

Then use array deconstructing in template like this:
image

Run dev server by vue-cli with command "vue-cli-service serve".
The browser shows errors: ReferenceError: _maybeArrayLike is not defined.
image

I've tried array deconstructing after removing this dependency "vue-template-babel-compiler",everything works fine.

@JuniorTour
Copy link
Owner

This is a bug, Thanks for your feedback.


Maybe we can fix this issue by add assumptions.iterableIsArray = true, to babel options.

Besides, #25 will be fixed too.

babel reproduction link for iterableIsArray


Do you have interest to fix this issue and become our Contributor?

You can:

  1. Try to reproduce this error. Setup DEMO Project can help.

  2. Follow CONTRIBUTING.md to make a Pull Request.

@JuniorTour JuniorTour added bug Something isn't working contribution welcome Good for newcomers and removed need triage labels Jan 14, 2022
@JuniorTour
Copy link
Owner

We just publish v1.1.2, it will fix this issue.

Try it by:

npm install vue-template-babel-compiler@latest
// or 
yarn add vue-template-babel-compiler@latest

Thanks for your feedback again!

@JuniorTour JuniorTour changed the title [Bug] Array deconstructing error in template [Fixed Bug] Array deconstructing error in template Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contribution welcome Good for newcomers Fixed
Projects
None yet
Development

No branches or pull requests

2 participants