"Devtools failed to load source map" #5793
-
DescriptionMy Javascript console presents this error for every one of my Quarto-generated sites.
ChatGPT says
but just for the sake of cleanliness, is there anything I can do about it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
(To be clear, those are not errors, they're warnings. The hint is that they should be showing up in yellow, and not in red) We recently changed this behavior, and these warnings should no longer be there. What version of quarto are you running? |
Beta Was this translation helpful? Give feedback.
-
Hello, I've encountered a situation where I'm getting similar results. Could you assist me in finding a solution? refer to I've noticed that the issue may be related to annotations in JS or CSS. It appears that these annotations need to be removed. However, it's worth mentioning that these annotations appear to be generated by Quarto's built-in JS or CSS functionalities. ![]() |
Beta Was this translation helpful? Give feedback.
-
For example, if there is a comment at the end of a CSS file, the above warning will appear: /*# sourceMappingURL=debc5d5d77c3f9108843748ff7464032.css.map */ I have provided a simple solution in the above project, which is to modify annotations in CSS or JS after rendering by project:
type: website
#post-render: compress_jscss.R
website:
title: "test"
navbar:
left:
- href: index.qmd
text: Home
- about.qmd
format:
html:
theme: cosmo
css: styles.css
toc: true
editor: visual
|
Beta Was this translation helpful? Give feedback.
Specifically, I believe we fixed that in this commit: e66d909