2

Where should I find or how to create a library to remove the warnings about unresolved variables/types?

Examples:

var fs=window.webkitRequestFileSystem; //Unresolved variable webkitRequestFileSystem

var audio=new Audio(); //Unresolved type Audio
1
  • What version of PHPStorm are you using? Commented Nov 22, 2013 at 15:25

2 Answers 2

3

Download the Closure Compiler.

Unpack the .js files from externs.zip, there will be fileapi.js file, add this file to the JavaScript libraries in PhpStorm to get the code completion and resolution.

You may want to create a library with all these .js files in case you are using other APIs.

Sign up to request clarification or add additional context in comments.

1 Comment

This worked for me. I was developing something for Google Cast and was using the chrome object so I created a library using chrome.js from externs.zip.
-2

Just a ONE-LINE solution

var audio = document.createElement('audio');

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.