Skip to content

Cannot be used with bundlers #44

@timfish

Description

@timfish

When using this with Nextjs you get the following error:

Error: ENOENT: no such file or directory, open '/home/runner/work/_temp/test-application/.next/server/chunks/orchestrion_js_bg.wasm'
    at Object.openSync (node:fs:574:18)
    at Object.readFileSync (node:fs:453:35)
    at 538 (/home/runner/work/_temp/test-application/.next/server/chunks/645.js:2:1456)
...snip...

Ideally we want this to at least work when bundlers are being used.

  • Why does this code get called even when the library isn't used?
  • Can we inline the wasm binary into the JavaScript?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions