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.

Not compatible with TypeScript 4.3+

See original GitHub issue

Describe the bug

Not compatible with TypeScript 4.3+

When using TS4.3, there will be a lot of warnings. But 4.2 is correct.

[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders.
...

I didn’t write any code to modify the properties. Just use @Prop.

Desktop (please complete the following information):

  • OS: MacOS 11.4
  • Browser Chrome 91
  • Version 9.1.2

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:6

github_iconTop GitHub Comments

5reactions
iwt-nduesingcommented, Dec 14, 2021

So the workaround is to add "useDefineForClassFields": false to the tsconfig.json like so:

{
  "compilerOptions": {
    "useDefineForClassFields": false
  },
}

So the result is, that classes are not working in the new ECMA way, but in the old TypeScript way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 4.3
TypeScript now actually does the work to prove whether or not each part of a template string can successfully match. You can now...
Read more >
Announcing TypeScript 4.3 - Microsoft Developer Blogs
TypeScript now actually does the work to prove whether or not each part of a template string can successfully match. You can now...
Read more >
The Angular Compiler requires TypeScript >=4.2.3 and <4.3.0 ...
1 Answer 1 · npm install typescript@'>==4.2.3 <4.3.0' or npm install typescript@'>==4.2.3 <4.3.0' --save-dev · Go to package.json and change your typescript ......
Read more >
Typescript 4.3: remove types compatibility check of getter and ...
Typescript 4.3 : remove types compatibility check of getter and setter from ... type that is not compatible with get accessor type, expecting...
Read more >
@typescript-eslint/eslint-plugin - npm
TypeScript plugin for ESLint. ... Start using @typescript-eslint/eslint-plugin in your project by running ... 4.3.0. 56,917. 2 years ago.
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