The build process fails with an error message "Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/mongodb/lib/deps.js" and externals are not allowed!"
Steps to reproduce
Build a Nuxt.js application.
Expected behavior
The build process should complete successfully.
Additional Information
This error occurs during the build phase (Building application).
The error message indicates that the @aws-sdk/credential-providers package cannot be found.
Possible Causes
Missing dependency: The @aws-sdk/credential-providers package might not be installed in your project.
Incorrect configuration: There might be an issue with the configuration of external dependencies (indicated by "externals are not allowed!").
17:43:23.356 [error] Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/mongodb/lib/deps.js" and externals are not allowed!
17:43:23.357 at Object.resolveId (node_modules/nitropack/dist/nitro.mjs:1966:17)
17:43:23.357 at async PluginDriver.hookFirstAndGetPlugin (node_modules/rollup/dist/es/shared/node-entry.js:19674:28)
17:43:23.357 at async resolveId (node_modules/rollup/dist/es/shared/node-entry.js:18355:26)
17:43:23.357 at async ModuleLoader.resolveId (node_modules/rollup/dist/es/shared/node-entry.js:18758:15)
17:43:23.357 at async node_modules/@rollup/plugin-commonjs/dist/es/index.js:785:16
17:43:23.357 at async Promise.all (index 3)
17:43:23.357 at async node_modules/@rollup/plugin-commonjs/dist/es/index.js:777:32
17:43:23.358 at async rewriteRequireExpressionsAndGetImportBlock (node_modules/@rollup/plugin-commonjs/dist/es/index.js:1354:28)
17:43:23.358 at async transformCommonjs (node_modules/@rollup/plugin-commonjs/dist/es/index.js:1933:23)
17:43:23.358 at async transform (node_modules/rollup/dist/es/shared/node-entry.js:18676:16)
17:43:23.358
17:43:23.358 [error] Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/mongodb/lib/deps.js" and externals are not allowed!
17:43:23.516 Failed: Error while executing user command. Exited with error code: 1
17:43:23.526 Failed: build command exited with code: 1
17:43:24.946 Failed: error occurred while running build command
Describe the bug
The build process fails with an error message "Cannot resolve "@aws-sdk/credential-providers" from "/opt/buildhome/repo/node_modules/mongodb/lib/deps.js" and externals are not allowed!"
Steps to reproduce
Expected behavior
The build process should complete successfully.
Additional Information
@aws-sdk/credential-providers
package cannot be found.Possible Causes
@aws-sdk/credential-providers
package might not be installed in your project.