nico
nico
Explore posts from servers
CDCloudflare Developers
Created by nico on 2/9/2024 in #pages-help
Is there any edge sub-dependency problem work-around?
Seems like MongoDB is waiting for Support vom Cloudflare to implement that currently. https://www.mongodb.com/community/forums/t/cloudflare-workers-integration-is-now-possible/226708/13
3 replies
CDCloudflare Developers
Created by nico on 2/9/2024 in #pages-help
Is there any edge sub-dependency problem work-around?
Here is the error. It is caused by "@aws-sdk/credential-providers" which is a sub-dependency of the MongoDB driver for Node apps and I havent found a work-around or any alternative way to bring my deployments back to work while still using MongoDB in my Nuxt app
23:06:37.720 [info] [nitro] Building Nitro Server (preset: `cloudflare-pages`)
23:06:39.180 Connected to MongoDB
23:06:58.639 [error] [nitro] Error: Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/.pnpm/mongodb@6.3.0/node_modules/mongodb/lib/deps.js" and externals are not allowed!
23:06:58.640
23:06:58.640
23:06:58.640 undefined
23:06:58.642 [error] Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/.pnpm/mongodb@6.3.0/node_modules/mongodb/lib/deps.js" and externals are not allowed!
23:06:58.642 at Object.resolveId (node_modules/.pnpm/nitropack@2.8.1/node_modules/nitropack/dist/shared/nitro.4ea992bc.mjs:1973:17)
23:06:58.642 at async PluginDriver.hookFirstAndGetPlugin (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:18592:28)
23:06:58.643 at async resolveId (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:17261:26)
23:06:58.643 at async ModuleLoader.resolveId (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:17675:15)
23:06:58.643 at async node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:785:16
23:06:58.643 at async Promise.all (index 3)
23:06:58.643 at async node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:777:32
23:06:58.644 at async rewriteRequireExpressionsAndGetImportBlock (node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1354:28)
23:06:58.644 at async transformCommonjs (node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1928:23)
23:06:58.644 at async transform (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:17593:16)
23:06:58.644
23:06:58.644 [error] Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/.pnpm/mongodb@6.3.0/node_modules/mongodb/lib/deps.js" and externals are not allowed!
23:06:58.764 Failed: Error while executing user command. Exited with error code: 1
23:06:58.770 Failed: build command exited with code: 1
23:07:00.213 Failed: error occurred while running build command
23:06:37.720 [info] [nitro] Building Nitro Server (preset: `cloudflare-pages`)
23:06:39.180 Connected to MongoDB
23:06:58.639 [error] [nitro] Error: Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/.pnpm/mongodb@6.3.0/node_modules/mongodb/lib/deps.js" and externals are not allowed!
23:06:58.640
23:06:58.640
23:06:58.640 undefined
23:06:58.642 [error] Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/.pnpm/mongodb@6.3.0/node_modules/mongodb/lib/deps.js" and externals are not allowed!
23:06:58.642 at Object.resolveId (node_modules/.pnpm/nitropack@2.8.1/node_modules/nitropack/dist/shared/nitro.4ea992bc.mjs:1973:17)
23:06:58.642 at async PluginDriver.hookFirstAndGetPlugin (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:18592:28)
23:06:58.643 at async resolveId (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:17261:26)
23:06:58.643 at async ModuleLoader.resolveId (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:17675:15)
23:06:58.643 at async node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:785:16
23:06:58.643 at async Promise.all (index 3)
23:06:58.643 at async node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:777:32
23:06:58.644 at async rewriteRequireExpressionsAndGetImportBlock (node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1354:28)
23:06:58.644 at async transformCommonjs (node_modules/.pnpm/@rollup+plugin-commonjs@25.0.7_rollup@4.9.6/node_modules/@rollup/plugin-commonjs/dist/es/index.js:1928:23)
23:06:58.644 at async transform (node_modules/.pnpm/rollup@4.9.6/node_modules/rollup/dist/es/shared/node-entry.js:17593:16)
23:06:58.644
23:06:58.644 [error] Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/.pnpm/mongodb@6.3.0/node_modules/mongodb/lib/deps.js" and externals are not allowed!
23:06:58.764 Failed: Error while executing user command. Exited with error code: 1
23:06:58.770 Failed: build command exited with code: 1
23:07:00.213 Failed: error occurred while running build command
3 replies
CDCloudflare Developers
Created by nico on 9/4/2023 in #pages-help
HTTP Error 500 on Nuxt 3 Site Deployed via Cloudflare Pages: Suspected Environment Variable Issues
No description
2 replies