question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release 0.40.1 breaks typescript compatibility on script setup

See original GitHub issue

This morning’s release breaks the typescript/tslint’s compatibility on <script lang='ts' setup>.

More specifically the following error is triggered:

'default' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.ts(7022)

As you may see it only happens in <script> and does not extend outside it.

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:29 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
caio-2kcommented, Aug 28, 2022

In my case downgrading to 0.39.5 solved it.

Edit: I have experiencied many issues arround my code after update to 0.40+ (my components, vue imports, etc), after change to 0.39.5 they have been gone.

4reactions
DerZadecommented, Aug 26, 2022

I experienced the same issue, when having circular references between components.

Here is a minimal reproducible example. (literally just npm init vue@latest with minimal features and only two components)

Steps to reproduce:

  1. Clone Repo
  2. Open src/components/A.vue or src/components/B.vue in VS Code with Volar version 0.40.1
  3. Error

Hope it helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases - ImmyDocs
This issue was causing all scripts that relied on AzureAD commands to fail. Fixed an issue where syncing the connected state of large...
Read more >
Import statements breaks script setup Nuxtjs 3 - Stack Overflow
The moment I comment the import statement, the myName ref seems to work again. What I use: VS Code; Nuxtjs 3; Tailwind CSS;...
Read more >
Vue Language Features (Volar) - Visual Studio Marketplace
Launch VS Code Quick Open ( Ctrl+P ), paste the following command, and press enter. ... to implement native TypeScript language service level...
Read more >
@vue/composition-api - npm
@vue/composition-api · Installation · TypeScript Support · SSR · Browser Compatibility · Limitations · Keywords.
Read more >
Prettier 1.19: Long awaited Vue option, TypeScript 3.7 and ...
This release adds the long awaited --vue-indent-script-and-style option, ... Prettier installed from npm stays compatible with Node.js 4.) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found