Cannon.js는 캐논 Cannon.js + Webstorm 8.0.1을 사용하여 정의되지 않은 (그러나 코드가 잘 실행) .검사는 말한다 : <a href="https://github.com/schteppe/cannon.js/blob/master/build/cannon.js" rel="nofollow">https://github.com/schteppe/cannon.js/blob/master/build/cannon.js</a></p> <p>webstorm이 자바 스크립트 LIB cannon.js를 사용하여 내가 webstorm-검사 문제를 얻을 :
내 코드 :
(http://schteppe.github.io/cannon.js/examples/threejs_mousepick.html이 예와 같이 내가 lib 디렉토리를 사용하고 있습니다) :
는var groundShape = new CANNON.Plane();
이제 Webstorm는 대포를 강조하고, 검사는 말한다 : "확인되지 않은 변수 또는 유형 CANNON".
어떻게 해결할 수 있습니까? cannon.js을 편집하고 삽입
:
를(이 오류를 숨기고, 대신 자동 완성 등 캐논의 Webstorm 인식하고 가능하지 않음)