question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Svelte] Failed to load source map for "..."

See original GitHub issue

I am submitting a…

  • Feature request
  • Design defect
  • Source code defect
  • Demo/documentation defect
  • Other

charts version:

0.41.6

Issue description

Failed to load source map for… error when using Svelte & Vite.

2:19:47 PM [vite] Failed to load source map for /node_modules/@carbon/charts/index.js?v=c1cb9cdf.
2:19:47 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/index.js?v=c1cb9cdf.
2:19:47 PM [vite] Failed to load source map for /node_modules/@carbon/charts/configuration.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/interfaces/index.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/area.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/area-stacked.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/bar-simple.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/bar-grouped.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/bar-stacked.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/boxplot.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/bubble.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/bullet.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/line.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/lollipop.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/scatter.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/pie.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/donut.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/meter.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/radar.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/gauge.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/combo.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/treemap.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/circle-pack.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/charts/wordcloud.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/tools.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/configuration-non-customizable.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/interfaces/a11y.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/interfaces/enums.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/axis-chart.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/index.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model-boxplot.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model-pie.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/chart.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model-meter.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/meter.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/radar.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model-gauge.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model-circle-pack.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/interfaces/events.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model-cartesian-charts.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/index.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/component.js?v=c1cb9cdf.
2:19:48 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/legend.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/threshold.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/title.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/title-meter.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/tooltip.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/tooltip-axis.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/essentials/canvas-chart-clip.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/area.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/area-stacked.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/bar-simple.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/bar-grouped.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/bar-stacked.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/boxplot.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/bubble.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/bullet.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/line.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/lollipop.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/scatter.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/scatter-stacked.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/pie.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/gauge.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/donut.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/skeleton.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/skeleton-lines.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/treemap.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/circle-pack.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/wordcloud.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/layout/spacer.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/layout/layout.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/two-dimensional-axes.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/axis.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/grid-brush.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/chart-clip.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/grid.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/ruler.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/ruler-stacked.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/toolbar.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/zero-line.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/axes/zoom-bar.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/model.js?v=c1cb9cdf.
2:19:49 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/angle-utils.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/essentials/dom-utils.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/essentials/events.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/essentials/transitions.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/essentials/gradient-utils.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/scales-cartesian.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/curves.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/zoom.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/canvas-zoom.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/utils-position/index.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/time-series.js?v=c1cb9cdf.
2:19:51 PM [vite] Failed to load source map for /node_modules/@carbon/charts/components/graphs/bar.js?v=c1cb9cdf.
2:19:53 PM [vite] Failed to load source map for /node_modules/@carbon/charts/services/service.js?v=c1cb9cdf.

Steps to produce the issue

using vite causes source map loading issues.

Current behavior

Fails to load source maps.

Expected behavior

To load source maps.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
drannex42commented, May 18, 2021

I am still unable to get it working properly, but adding that to my optimizeDeps did remove the source map errors. I believe it may be related to another library that I am using (Routify) and Typescript, but will be investigating further. I’ll update here if I come across anything, but I’ll close this for now.

Note: The speed that this got responses was insane, I don’t think I’ve ever seen responses on an issue so quickly. Thanks!

0reactions
IanMarteenscommented, May 25, 2022

Thanks!

De: metonym @.> Enviado el: miércoles, 25 de mayo de 2022 15:18 Para: carbon-design-system/carbon-charts @.> CC: Ian Marteens @.>; Mention @.> Asunto: Re: [carbon-design-system/carbon-charts] [Svelte] Failed to load source map for “…” (#1024)

@IanMarteens https://github.com/IanMarteens If you’re using SvelteKit, refer to the sample set-up https://github.com/carbon-design-system/carbon-charts/tree/3ddb01a4d2aeeff91a201c6d4ccb988b6b643c03/packages/svelte#sveltekit outlined in the docs.

For vite + SvelteKit more generally, see the SvelteKit docs https://kit.svelte.dev/docs/configuration#vite .

— Reply to this email directly, view it on GitHub https://github.com/carbon-design-system/carbon-charts/issues/1024#issuecomment-1137227688 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKV6N2LRB47T3MIWSOACZNTVLYSBZANCNFSM45DETYBA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AKV6N2MS4V54JBXB6VDX3TLVLYSBZA5CNFSM45DETYBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIPELPKA.gif Message ID: @.*** @.***> >

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Source Maps for Svelte - Sentry Documentation
Source maps can sometimes be tricky to get going. If you're having trouble, you can try using our verification tool inside sentry-cli ,...
Read more >
Error message "DevTools failed to load SourceMap: Could not ...
Go to the three dots in the upper right hand corner of Chrome. · Go to "More Tools" and click on "Extensions". ·...
Read more >
Sourcemaps · Raygun Docs
We support both public and private source maps. Minified files save space and make loading of pages faster, but sometimes make it hard...
Read more >
Docs • Svelte
This page contains detailed API reference documentation. It's intended to be a resource for people who already have some familiarity with Svelte. If...
Read more >
4 Ways to Fix the “Failed to Load Resource: net - Kinsta
Learn how to fix the "Failed to Load Resource: net::ERR_BLOCKED_BY_CLIENT" error. We'll show you 4 different methods to fix this error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found