-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
api: cloudprofilerIssues related to the googleapis/cloud-profiler-nodejs API.Issues related to the googleapis/cloud-profiler-nodejs API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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.
Metadata
Metadata
Assignees
Labels
api: cloudprofilerIssues related to the googleapis/cloud-profiler-nodejs API.Issues related to the googleapis/cloud-profiler-nodejs API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.