Skip to content

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

@fechy

Description

@fechy

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

No one assigned

    Labels

    api: cloudprofilerIssues related to the googleapis/cloud-profiler-nodejs API.priority: p2Moderately-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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions