gdsestimating / three-dxf

A dxf viewer for the browser using three.js
MIT License
538 stars 171 forks source link

Cannot open property "Viewer" of undefined or null. (Internet Explorer) #50

Closed ColinSchmale closed 3 years ago

ColinSchmale commented 3 years ago

cadCanvas = new window.ThreeDxf.Viewer(dxf, document.getElementById('cad-view'), 400, 400, font);

causes an error in the console when I try to open a file. It cannot open property "Viewer" of undefined or null.

(When I load the site there is another error about an expected semicolon in three-dxf.js between "use-strict"; and eval(.)

Does anyone know why this happens and how I can fix it? It only happens on Internet Explorer 11. With Chrome and Edge everything works.

Edit:

I think I've fixed the Viewer undefined error by copying everything in the same file and Githubissues.

  • Githubissues is a development platform for aggregating issues.