Skip to content

Error when bundling code in version 3.3.1 #98

@ValYouW

Description

@ValYouW

After upgrading to version 3.3.1 I started to get the following error when building my code (using esbuild):

The top-level await in "node_modules/bson/lib/bson.mjs" is here:

    node_modules/bson/lib/bson.mjs:111:26:
      111 │ const nodejsRandomBytes = await (async () => {
          ╵                           ~~~~~

It seems the error comes from bson lib that was updated in version 3.3.1 to ^5.4.0 (used to be 4.5.2 in 3.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions