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

使用vue3 + 字节自定义组件项目编译异常 #3915

Closed
pipione opened this issue Oct 11, 2022 · 1 comment
Closed

使用vue3 + 字节自定义组件项目编译异常 #3915

pipione opened this issue Oct 11, 2022 · 1 comment
Assignees
Labels
bug Something isn't working mp-toutiao 字节小程序 vue3

Comments

@pipione
Copy link

pipione commented Oct 11, 2022

问题描述
使用vue3 + 字节自定义组件项目编译异常

复现步骤

启动项目就会报错
miniapp-v4-demo-uniapp.zip

预期结果

正常显示
实际结果

image

系统信息:

  • 发行平台: 字节小程序
  • 操作系统 macos

补充信息

使用vue2可以运行,使用vue3就报错
image

@fxy060608 fxy060608 self-assigned this Oct 11, 2022
@fxy060608 fxy060608 added bug Something isn't working vue3 mp-toutiao 字节小程序 labels Oct 11, 2022
@fxy060608
Copy link
Collaborator

临时解决方案:Component定义组件时,声明一个lifetimes:{}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mp-toutiao 字节小程序 vue3
Projects
None yet
Development

No branches or pull requests

2 participants