嗨我有特定的问题,当我试图在平板电脑和表面上运行我的项目时我有错误:
viewer3D.js?v=3.1.*:1372 Uncaught TypeError: Cannot read property 'id' of null
at _.recognizeWith (viewer3D.js?v=3.1.*:1372)
at Array.forEach (<anonymous>)
at g (viewer3D.js?v=3.1.*:1372)
at f (viewer3D.js?v=3.1.*:1372)
at _.recognizeWith (viewer3D.js?v=3.1.*:1372)
at new Autodesk.Viewing.GestureHandler (viewer3D.js?v=3.1.*:13874)
at GuiViewer3D.Viewer3D.createControls (viewer3D.js?v=3.1.*:42281)
at GuiViewer3D.Viewer3D.initialize (viewer3D.js?v=3.1.*:42354)
at GuiViewer3D.initialize (viewer3D.js?v=3.1.*:48392)
at GuiViewer3D.Viewer3D.start (viewer3D.js?v=3.1.*:42154)
这个错误发生在版本2.13之前,当我使用v2.12一切都很好。
我想使用最新的api,因为我发现在较新的库中,一切都运行得更好
你可以用某种方式帮助我//脚本加载
<script src="https://developer.api.autodesk.com/derivativeservice/v2/viewers/three.js?v=2.12.*"></script>
<script src="https://developer.api.autodesk.com/derivativeservice/v2/viewers/viewer3D.js?v=2.12.*"></script>
我也试过
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/three.js?v=3.1.*"></script>
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/viewer3D.js?v=3.1.*"></script>
答案 0 :(得分:1)
问题是由第三方库引起的。 “问题是外部库 - &gt; materialize.js,当我使用它时我有这个错误,现在我扔了它现在没事了。”