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

browser-external:source-map-js:9 Module "source-map-js" has been externalized for browser compatibility. Cannot access "source-map-js.SourceMapConsumer" in client code. See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details #664

Open
dhivahar19 opened this issue Jun 3, 2024 · 2 comments

Comments

@dhivahar19
Copy link

getting this error when i am using it in clientcode (browser)

@boutell
Copy link
Member

boutell commented Jun 3, 2024

We use this module only on the server side, and in most cases that is best practice. Front end use cases exist, support for that comes from the community so I've flagged this as "seeking contributions." It is not a bug as the code functions as designed.

@de-dan
Copy link

de-dan commented Jun 13, 2024

The annoying warning originates from the postcss plugin. Here is a suggestion to ship postcss as ESM which would potentially fix it: postcss/postcss#1858

Alternatively exchange postcss plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants