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

mixins parse error #236

Open
8zf opened this issue May 26, 2021 · 1 comment
Open

mixins parse error #236

8zf opened this issue May 26, 2021 · 1 comment

Comments

@8zf
Copy link

8zf commented May 26, 2021

Describe the bug
when mixins in vue SFC is declared using shorthand syntax, vuese/parser emits error.

To Reproduce
Steps to reproduce the behavior:

pass code below to vuese-explorer

<template>
  <div></div>
</template>

<script>
// ./mixins.js exports an array
import mixins from './mixins'

export default {
  name: 'TestCmp',
  mixins,
}
</script>

Expected behavior
parse API successfully

Additional information
workaround: using destruct syntax

export default {
  name: 'TestCmp',
  mixins: [...mixins],
}
@screetBloom
Copy link
Member

got it
As we have communicated that the problem is not urgent , I will fix the problem as soon as I am free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants