aws-observability / aws-rum-web

Amazon CloudWatch RUM Web Client
Apache License 2.0
114 stars 65 forks source link

[Bug]: Error: Cannot find module '@aws-sdk/fetch-http-handler' #461

Closed gedlow closed 8 months ago

gedlow commented 8 months ago

Which web client version did you detect this bug with?

v1.15.0

What environment (build systems, module system, and framework) did you detect this bug with?

TypeScript v4.9.5, Webpack v4.46.0, NextJs v12.3.1

Is your web application a single page application (SPA) or multi page application (MPA)?

None

Please provide your web client configuration

No response

Please describe the bug/issue

Hello, I am getting the following error in node while building the page

Error: Cannot find module '@aws-sdk/fetch-http-handler'
Require stack:
- /var/task/node_modules/aws-rum-web/dist/cjs/dispatch/Authentication.js
- /var/task/node_modules/aws-rum-web/dist/cjs/orchestration/Orchestration.js
- /var/task/node_modules/aws-rum-web/dist/cjs/index.js
- /var/task/.next/server/pages/_app.js

And there are no errors/unmet dependancies during npm installation process.

gedlow commented 8 months ago

The problem seems to be with the package loader in Netlify.. closing the issue.