Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Some random ass mongodb error when calling create message api route #1

Closed
DanielWTE opened this issue May 7, 2023 · 1 comment · Fixed by #3
Closed

Some random ass mongodb error when calling create message api route #1

DanielWTE opened this issue May 7, 2023 · 1 comment · Fixed by #3
Assignees

Comments

@DanielWTE
Copy link
Owner

image

./node_modules/bson/lib/bson.mjs
Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
Error: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
Import trace for requested module:
./node_modules/bson/lib/bson.mjs
./node_modules/mongoose/lib/utils.js
./node_modules/mongoose/lib/index.js
./node_modules/mongoose/index.js
./utils/dbConn.ts
./app/api/message/route.ts

Happening on "Create Message" Button Click @/app/msg/page.ts at line 18

@DanielWTE DanielWTE self-assigned this May 7, 2023
@DanielWTE DanielWTE linked a pull request May 8, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant