Skip to content

fix: 修复 new Vue 解析错误 #20

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

Merged
merged 1 commit into from
May 17, 2018
Merged

fix: 修复 new Vue 解析错误 #20

merged 1 commit into from
May 17, 2018

Conversation

F-loat
Copy link
Member

@F-loat F-loat commented May 6, 2018

vueeventBus 的典型用法是

import Vue from 'vue'

const bus = new Vue()

export default bus

目前对 new Vue 的解析配置会导致 eventBus 不可用,错误如下

TypeError: unknown: Cannot read property 'type' of undefined

@F-loat
Copy link
Member Author

F-loat commented May 6, 2018

关联问题:F-loat/mpvue-wxParse#17 , Meituan-Dianping/mpvue#86

@aOrz aOrz merged commit 16f5d1e into develop May 17, 2018
@F-loat F-loat deleted the fix-new-parser branch May 17, 2018 05:18
BugKun pushed a commit to BugKun/mpvue-loader that referenced this pull request Jun 1, 2020
fix: 修复 new Vue 解析错误
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

Successfully merging this pull request may close these issues.

2 participants