Skip to content
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

this.searchParams.constructor undefined #479

Open
wunaidage opened this issue Mar 3, 2024 · 0 comments
Open

this.searchParams.constructor undefined #479

wunaidage opened this issue Mar 3, 2024 · 0 comments

Comments

@wunaidage
Copy link

  • I'm submitting a ...
    [x ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    everything works on local, but when push to elastic beanstalk, following error happens

node ./bin/www
/var/app/current/node_modules/mongodb-connection-string-url/lib/index.js:152
Object.setPrototypeOf(this.searchParams, caseInsenstiveURLSearchParams(this.searchParams.constructor).prototype);
^
TypeError: Cannot read properties of undefined (reading 'constructor')
at new ConnectionString (/var/app/current/node_modules/mongodb-connection-string-url/lib/index.js:152:98)
at parseOptions (/var/app/current/node_modules/mongodb/lib/connection_string.js:186:17)
at new MongoClient (/var/app/current/node_modules/mongodb/lib/mongo_client.js:51:63)
at MongoClient.connect (/var/app/current/node_modules/mongodb/lib/mongo_client.js:295:24)
at new MongoStore (/var/app/current/node_modules/connect-mongo/build/main/lib/MongoStore.js:114:46)
at MongoStore.create (/var/app/current/node_modules/connect-mongo/build/main/lib/MongoStore.js:140:16)
at Object. (/var/app/current/packages/backend/app.js:58:23)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant