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

uniapp 微信小程序编译错误 #4944

Closed
ywenhao opened this issue May 29, 2024 · 4 comments
Closed

uniapp 微信小程序编译错误 #4944

ywenhao opened this issue May 29, 2024 · 4 comments

Comments

@ywenhao
Copy link

ywenhao commented May 29, 2024

uniapp,用vue3 setup里面,import 导入一张图片,编译成微信小程序会出现Logo is not defined,查看编译后的代码是被编译成了_ctx.Logo

<template>
  <image  :src="Logo" />
</template>

<script setup lang="ts"> 
import Logo from '@/static/logo.png'

// 正常打印
console.log(Logo)
</script>
@ywenhao
Copy link
Author

ywenhao commented May 30, 2024

image

@ywenhao ywenhao changed the title uniapp 编译错误 uniapp 微信小程序编译错误 Jun 1, 2024
@ywenhao
Copy link
Author

ywenhao commented Jun 1, 2024

挺重大的bug,麻烦官方修改一下。或者告知一下负责这一模块的文件位置,方便我们提pr

@GRCmade
Copy link
Collaborator

GRCmade commented Jul 4, 2024

现在是正常的,图片也可以正常显示了!

@ywenhao
Copy link
Author

ywenhao commented Jul 5, 2024

现在是正常的,图片也可以正常显示了!

ok, 好了

@ywenhao ywenhao closed this as completed Jul 5, 2024
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