Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

SyntaxError: Identifier 'vue' has already been declared #195

Closed
miomio-xiao opened this issue May 17, 2022 · 0 comments · Fixed by #196
Closed

SyntaxError: Identifier 'vue' has already been declared #195

miomio-xiao opened this issue May 17, 2022 · 0 comments · Fixed by #196

Comments

@miomio-xiao
Copy link
Contributor

import vue from "vue"

If the vue variable is defined in the vue file, there will be a conflict

<script>
import vue from 'vue';

export default {
    // ...
}
</script>
miomio-xiao added a commit to miomio-xiao/vite-plugin-vue2 that referenced this issue May 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant