Unresolved variable length and unresolved function or method
I'm getting two warnings in my code that I can't resolve. I'm writing a discord bot, using discord.js and axios.
The first warning is this: https://imgur.com/a/WD0IM
The second one: https://imgur.com/a/IDEXm (the hidden part is .then)
I have ECMAScript 6 enabled, NodeJS code assistance enabled and node-DefinitelyTyped enabled.
How should I fix those issues?
(I'm using PHPStorm, but since it a JS problem I decided to write here.)
Please sign in to leave a comment.
can't see any images there. please provide the code snippets (as text) and screenshots - you can insert images right in the post
I'm sorry for the broken links, I have updated them.
Links still don't work for me - I'm getting "Zoinks! You've taken a wrong turn" :(
Please insert code snippets and images right in your post
Removed junk letters from URLs (everything after %, including the symbol itself)
1. https://youtrack.jetbrains.com/issue/WEB-30211
2. to me, get() is resolved to get<T = any>() in node_modules/axios/index.d.ts
So I should follow the issue on the first question (is somewhere a follow button by the way, I'm not finding it), and I did not understood what to do on the second one?
please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications for information on following youtrack tickets.
as for the second issue, I have been unable to reproduce it. Please try invalidating caches (File | Invalidate caches, Invalidate and restart) - does the problem persist? If yes, please share a minimal test project that can be used to reproduce the issue
Tried invalidating caches and it is still the same.
please provide a test project then
The project is uploaded here: https://github.com/preso19/discord-rune-bot
Edit: The bug is in bot.js
works for me using your project: