Open meatjam opened 2 years ago
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
Try to reproduce this error. Setup DEMO Project can help.
Follow CONTRIBUTING.md to make a Pull Request.
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!
My devDependencies:
Then use array deconstructing in template like this:
Run dev server by vue-cli with command "vue-cli-service serve". The browser shows errors: ReferenceError: _maybeArrayLike is not defined.
I've tried array deconstructing after removing this dependency "vue-template-babel-compiler",everything works fine.