mock-aws-s3, aws-sdk, nock dependencies vs devDependencies issue
Usage of `mock-aws-s3`, `aws-sdk`, and `nock` are used in the call stack originating from `lib/node-pre-gyp.js` (which is the package `main`), but they are only listed in `"devDependencies"`. ``` "aws-sdk": "^2.1012.0", "mock-aws-s3": "^4.0.2", "nock": "^13.1.4", ``` This causes a problem with webpack: ``` ERROR in ../project/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js 43:20-42 Module not found: Error: Can't resolve 'mock-aws-s3' in '/Path/to/project/node_modules/@mapbox/node-pre-gyp/lib/util' @ ../project/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js 15:21-62 @ ../project/node_modules/bcrypt/bcrypt.js 3:17-48 @ ./src/lib/server/initialize.ts 3:0-69 9:12-39 21:23-56 @ ./src/index.ts 12:0-53 51:4-19 ERROR in ../project/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js 76:14-32 Module not found: Error: Can't resolve 'aws-sdk' in '/Path/to/project/node_modules/@mapbox/node-pre-gyp/lib/util' @ ../project/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js 15:21-62 @ ../project/node_modules/bcrypt/bcrypt.js 3:17-48 @ ./src/lib/server/initialize.ts 3:0-69 9:12-39 21:23-56 @ ./src/index.ts 12:0-53 51:4-19 ERROR in ../project/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js 112:15-30 Module not found: Error: Can't resolve 'nock' in '/Path/to/project/node_modules/@mapbox/node-pre-gyp/lib/util' @ ../project/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js 15:21-62 @ ../project/node_modules/bcrypt/bcrypt.js 3:17-48 @ ./src
Posted by johnmanko on Jul 6, 2022, 12:13 AM
Tags
Related issues
- Custom games stuck on "finding server" for all european servers
- Feature request: add ACP (Agent Client Protocol) stdio JSON-RPC mode
- Forza Horizon 6 (2483190)
- Turn off integrated browser for default
- Weekly updates are too frequent
- [BUG] Max 20x plan: 100% usage after 2 hours of light work (5 commits, no agents)
Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments
github (Sysadmin)
Custom games stuck on "finding server" for all european servers
Feature request: add ACP (Agent Client Protocol) stdio JSON-RPC mode
Forza Horizon 6 (2483190)
Turn off integrated browser for default
Weekly updates are too frequent
[BUG] Max 20x plan: 100% usage after 2 hours of light work (5 commits, no agents)
Add gemini-3.1-pro-preview
[TF2] Feature request: Bring Back Quickplay
mock-aws-s3, aws-sdk, nock dependencies vs devDependencies issue
Usage of `mock-aws-s3`, `aws-sdk`, and `nock` are used in the call stack originating from `lib/node-pre-gyp.js` (which is the package `main`), but they are only listed in `"devDependencies"`. ``` "aws-sdk": "^2.1012.0", "mock-aws-s3": "^4.0.2", "nock": "^13.1.4", ``` This causes a problem with webpack: ``` ERROR in ../project/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js 43:20-42 Module not found: Error: Can't resolve 'mock-aws-s3' in '/Path/to/project/node_modules/@mapbox/node-pre-gyp/lib/util' @ ../project/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js 15:21-62 @ ../project/node_modules/bcrypt/bcrypt.js 3:17-48 @ ./src/lib/server/initialize.ts 3:0-69 9:12-39 21:23-56 @ ./src/index.ts 12:0-53 51:4-19 ERROR in ../project/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js 76:14-32 Module not found: Error: Can't resolve 'aws-sdk' in '/Path/to/project/node_modules/@mapbox/node-pre-gyp/lib/util' @ ../project/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js 15:21-62 @ ../project/node_modules/bcrypt/bcrypt.js 3:17-48 @ ./src/lib/server/initialize.ts 3:0-69 9:12-39 21:23-56 @ ./src/index.ts 12:0-53 51:4-19 ERROR in ../project/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js 112:15-30 Module not found: Error: Can't resolve 'nock' in '/Path/to/project/node_modules/@mapbox/node-pre-gyp/lib/util' @ ../project/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js 15:21-62 @ ../project/node_modules/bcrypt/bcrypt.js 3:17-48 @ ./src
Comments (0)
No comments yet. Start the discussion.