-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
Use Case
As a developer I want to connect to mongodb from Angular SSR node backend.
User Experience
unable to connect to the database due to whatwg-url package as mentioned here
My error msg:
file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/server.mjs:56447
var AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf(function() {
^
TypeError: Cannot convert undefined or null to object
at Function.getPrototypeOf (<anonymous>)
at node_modules/whatwg-url/lib/utils.js (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/server.mjs:56447:41)
at __require2 (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/chunk-ITE73WAF.mjs:48:50)
at node_modules/whatwg-url/lib/URL.js (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/server.mjs:59335:17)
at __require2 (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/chunk-ITE73WAF.mjs:48:50)
at node_modules/whatwg-url/webidl2js-wrapper.js (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/server.mjs:59744:16)
at __require2 (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/chunk-ITE73WAF.mjs:48:50)
at node_modules/whatwg-url/index.js (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/server.mjs:59760:9)
at __require2 (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/chunk-ITE73WAF.mjs:48:50)
at node_modules/mongodb-connection-string-url/lib/index.js (file:///C:/PROJECTS/PartexWebsiteFrontend/site/dist/partex-website/server/en/server.mjs:59900:24)
This problem is also described here:
https://github.com/angular/angular-cli/issues/27880
https://github.com/angular/angular-cli/issues/27755
https://github.com/jsdom/whatwg-url/issues/274
Acceptance Criteria
Implementation Requirements
- remove whatwg-url dependency