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.

Problem with Typescript and reactive declaration, "Unresolved variable or type"

See original GitHub issue

When using “lang=‘ts’” in the script tag, i am supposing that intellij wont recognize svelte syntax $: and throw the message bellow:

Screenshot from 2020-10-20 11-25-43

If that behavior does not come from the svelte plugin just ignore this issue and forgive me for the missundertood.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tomblachutcommented, Oct 26, 2020

v0.15.1 contains a fix

1reaction
guihigcommented, Oct 21, 2020

@guihig this is in fact a bug, thanks for reporting.

@anstarovoyt I didn’t either sweat_smile happens to best of us. We need to add more tests next time.

Glad to help.

If there is anything I can help with, don’t hesitate to ask me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

since version 0.21.0 TypeScript imports shows error 'Cannot ...
All variables are highlighted in red and WebStorm says "Unresolved variable or type ". Was working earlier, but WebStorm was in constant ...
Read more >
Webstorm shows unresolved variable when Typescript has no ...
I'm having to make a few assumptions as you haven't shown a complete working example of the issue. My guess would be that...
Read more >
Svelte: Unresolved variable false-negative for reactive ...
I'm using the svelte plugin to develop a svelte app. The following piece of code is valid and works on runtime but is...
Read more >
Reactivity Transform - Vue.js
Reactive variables can be accessed and re-assigned just like normal variables, but these operations are compiled into refs with .value .
Read more >
Documentation - SolidJS · Reactive Javascript Library
value)); } <input type="text" use:model={[name, setName]} />;. To register with TypeScript extend the JSX namespace. declare module "solid-js" { namespace ...
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