Provided module cannot be loaded
When using this lib in my cloud function on nodejs14 it is producing the following issue:
Provided module can't be loaded.
Did you list all required modules in the package.json dependencies?
Detailed stack trace: Error: Cannot find module '/src/plugins/plugin-http.js'
...
Any help is appreciated.
I guess this issue is caused by esbuild. Don't you support bundling this lib? For cloud functions, a bundler is really important to have a smaller zip size.
Hi, I'm sorry this is not working with esbuild. Could you provide a test case to reproduce this error?
Or another option to consider is using the OpenTelemetry library instead. I don't know if it supports esbuild but it will be more actively supported going forward.
I'm closing this issue out as stale, but please feel free to reopen, especially if you're able to provide some concrete repro steps (e.g. your package.json, how you invoked esbuild, etc.).