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

type error when import file missing the <script> block #1455

Closed
seesawsin opened this issue Jun 14, 2022 · 2 comments
Closed

type error when import file missing the <script> block #1455

seesawsin opened this issue Jun 14, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@seesawsin
Copy link

seesawsin commented Jun 14, 2022

Reproduction link

https://github.com/see-saw-seen/vue3-test
The repo was generated by create-vue.

Description

The error seems due to the missing of <script setup lang="ts"> block.
It happened in v0.37.8 and It looks well when i fall back to v0.37.7.

微信截图_20220614162652
微信截图_20220614162823

v0.37.7 works well
微信截图_20220614162544

@seesawsin seesawsin changed the title I got a ts error when import sfc file which without the script block type error when import file missing the <script> block Jun 15, 2022
@exherb
Copy link

exherb commented Jun 15, 2022

encounter this too

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Jun 15, 2022
@johnsoncodehk
Copy link
Member

Thanks for the report. v0.37.8 is a version update for petite-vue, if you don't use petite-vue, you can downgrade to v0.37.7 for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants