Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@google-cloud/profiler Failed to initialize SourceMapper #902

Open
fechy opened this issue Sep 21, 2023 · 0 comments
Open

@google-cloud/profiler Failed to initialize SourceMapper #902

fechy opened this issue Sep 21, 2023 · 0 comments
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@fechy
Copy link

fechy commented Sep 21, 2023

We have recently migrated to Node v18 and started receiving this error upon app start.

Failed to initialize SourceMapper. Source map support has been disabled: Error: An error occurred while processing the source map filesError: An error occurred while reading the sourceMap file /usr/src/app/dist/src/all-exceptions.filter.js.map: Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

Our app is running on Gcloud k8, but running it locally renders the same error.

We are on @google-cloud/profiler version 4.1.7, updating to 6.0.0 does not fix the issue.

Only workaround is to call node with: NODE_OPTIONS=--no-experimental-fetch.
Other work around is to set disableSourceMaps to true, or build the Typescript app with "sourceMap" as false.

@fechy fechy added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Sep 21, 2023
@product-auto-label product-auto-label bot added the api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant