"Array" or "Object" or "new Date()" usage warns "Missing AMD module dependency"

http://prntscr.com/fbfwk6

http://prntscr.com/fbfxb4

What could be the problem?
And how to fix it?

WebStorm 2017.1
Build #WS-171.3780.79, built on March 17, 2017
Licensed to Tenzor LLC / jetbrains tensor
Subscription is active until March 12, 2018
JRE: 1.8.0_112-release-736-b13 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

0
3 comments

can't recreate. What libraries do you have enabled? Please ctrl+click on 'Object' and 'Date' - what files are opened?

0

http://prntscr.com/fbkb9g

http://prntscr.com/fbkbso

There is our framework, but the standard "library" EcmaScript.js is also there

0

there is unfortunately no way to tell WebStorm what definition to prefer... I can suggest suppressing this inspection for statement (Alt+Enter, Right, Suppress for statement) or disabling it completely

0

Please sign in to leave a comment.