gdsestimating / three-dxf

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

Fix `Error: Cannot find module 'THREE'` #87

Open euharrison opened 1 year ago

euharrison commented 1 year ago

I'm getting this error when bundling my app

Error: Cannot find module 'THREE'

The solution was to map the module to three as it's in the npm module, instead of THREE that I believe it only works if importing the <script> directly