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

File '[...]/src/App.vue.__VLS_template.jsx' is a JavaScript file. Did you mean to enable the 'allowJs' option? #1452

Closed
Shinigami92 opened this issue Jun 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Shinigami92
Copy link
Collaborator

This is new and occurred between > 0.37.5, <= 0.37.8

image

Setting it to allowJs true works for now, but I personally prefer not to allow it, so I get an error when someone in my team writes a js instead of ts file.

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

Seeing the same problem.

In my case it is caused by single-file-components that do not have a <script> tag.

Adding <script lang="ts" setup></script> to these files helps as a workaround for now.

@Shinigami92
Copy link
Collaborator Author

@Eusebius1920 You are right 💚

The content of my App.vue is

<template lang="pug">
router-view
</template>

@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.

cexbrayat added a commit to cexbrayat/vue-test-utils-next that referenced this issue Jun 15, 2022
cexbrayat added a commit to cexbrayat/vue-test-utils-next that referenced this issue Jun 15, 2022
cexbrayat added a commit to vuejs/test-utils that referenced this issue Jul 4, 2022
* chore: workaround vue-tsc issue vuejs/language-tools#1452

* fix mount overload, allow DefineComponent to infer it's own generics

* readding missing parameters

* add overload for vue-tsc

Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
HosokawaR added a commit to twin-te/twinte-landing-page that referenced this issue Aug 31, 2022
ts の指定がないと vue-tsc がエラーを吐く
vuejs/language-tools#1452
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