Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Mistaken "warning: could not determine a source map reference" #312

@javierguzman

Description

@javierguzman

Hello all,

I put this as a feature request as I do not believe is a bug. I am getting several warnings similar to the one below:
warning: could not determine a source map reference

This seems like a legitimate warning message. However, I am getting some bundle chunks from Webpack that do not have a corresponding map file. As far as I can see, these are related to dynamic import of files, e.g.

      const PrivacyPolicyFile = await import(
        /* webpackChunkName: "privacypolicy" */
        `./markdown/PrivacyPolicy.${currentLanguage}.md`
      );

I do not understand the details but for some reason, webpack does not generate maps for these chunks.

Then, my feature request would be to have Sentry query Webpack (if it is possible) how many map files have been created. From my ignorant point of view, this looks like Sentry just looking at the directory and trying to figure out on its own how many bundles and maps are around without asking Webpack.

Does this make sense? For now, I will have to start ignoring that warning :(

Thank you in advance and regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions