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.)

1
11 comments

can't see any images there. please provide the code snippets (as text) and screenshots - you can insert images right in the post

0
Avatar
Permanently deleted user

I'm sorry for the broken links, I have updated them.

0

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

0

Removed junk letters from URLs (everything after %, including the symbol itself)

0

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

0
Avatar
Permanently deleted user

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?

0

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

0
Avatar
Permanently deleted user

Tried invalidating caches and it is still the same.

0

please provide a test project then

0
Avatar
Permanently deleted user

The project is uploaded here: https://github.com/preso19/discord-rune-bot

Edit: The bug is in bot.js

0

works for me using your project:

0

Please sign in to leave a comment.