-
Notifications
You must be signed in to change notification settings - Fork 104
Cannot bind the library with Vite #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have a similar problem:
|
I found a solution with three steps:
|
// import occ with '?url'. Check follow: import openCascade from 'opencascade.js/dist/opencascade.full.js' export async function initOcc() { |
I'm trying to build the library and import it but I keep having errors such as
WebAssembly.instantiate(): Import #0 module="a": module is not an object or function
, I'm not sure whycould you perhaps provide a basic project with a
vite.config.mts
which builds correctly?The text was updated successfully, but these errors were encountered: