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.

useIntervalFn not recognized by PHPStorm

See original GitHub issue

Version: 6.7.5 IDE: PHPStorm 2021.2.3 OS: Win 10

Problem:

import { useIntervalFn } from "@vueuse/core";

as you can see, I am importing useIntervalFn from @vueuse/core. I didnt notice when it started to happen, but now, my IDE says “cannot resolve symbol ‘useIntervalFn’” and it is red as on image below. image

What is weird? When I CTRL+click on red function title, it would jump to function declaration in index.d.ts located at node_modules/@vueuse/core/node_modules/@vueuse/shared directory.

I tried to reload caches, reinstall packages, nothing helped. App still compiles without problems.

Does someone know any solution for this? Thank you.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

5reactions
frankykubocommented, Nov 23, 2021

Anybody facing this issue as well?

1reaction
linkurzwegcommented, Mar 30, 2022

Exact same issue here with current version of Webstorm when using useDebounceFn. Would be really nice if this could be fixed.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

PhpStorm - Code Inspections in JavaScript and TypeScript
Reports a collection of fields or variables whose contents are either queried and not updated or updated and not queried. Such mismatched ...
Read more >
How can I fix WebStorm warning "Unresolved function or ...
Go -> Preferences-> Editor-> Inspections-> JavaScript-> General. and you will find a list and just unchecked ...
Read more >
setTimeout vs setInterval | Top 4 Differences You Should Know
This is a guide to setTimeout vs setInterval. Here we discuss key differences with infographics and comparison table respectively.
Read more >
How to use setTimeout() in JavaScript? - Tabnine
The setTimeout function is a native JavaScript function. It sets a timer (a countdown set in milliseconds) for an execution of a callback...
Read more >
IntelliJ Live Templates for Typescript and React - GitHub
Live templates for Typescript and typed React code, for IntelliJ Idea, Webstorm, PHPStorm and other Jetbrains IDEs. With sensible variable expressions and ...
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