xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
728 stars 287 forks source link

Unable to load XKT model when deploying the application #1375

Closed pierretoussing closed 8 months ago

pierretoussing commented 8 months ago

Describe the bug Duplicate of #1080 . Facing the exact same error.

pierretoussing commented 8 months ago

Was able to solve this by installing pako using npm:

npm install pako

and then manually assigning the module to window.pako

import * as pako from 'pako';

window.pako = pako;