Skip to content

Improve initial setup and compatibility #396

@theoephraim

Description

@theoephraim

Just installed the playground to try this out and ran into a few issues.

First tried bun and ran into this issue - error: 'better-sqlite3' is not yet supported in Bun. (mentioned in #251)

Then switched to node and hit this issue - ReferenceError: require is not defined in ES module scope, you can use import instead
Obviously not a big deal, but the JS world is moving towards ESM only, so maybe time to update the basic example to use import, and potentially to adopt top level await.

Fixed that, using pnpm, ran into Error: Could not locate the bindings file. (cannot find sqlite bindings)

Downgraded node and switched to npm and it worked.

All resolvable, but not a great first experience.

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