我该如何停止终端中这个烦人的警告?
Sourcemap for "xxxxx/node_modules/@material/circular-progress/foundation.js" points to missing source files
我尝试了以下
sentryVitePlugin({
org: 'dogbase',
project: 'dogbase-production',
authToken: env.VITE_APP_SENTRY_AUTH_TOKEN,
//silent: true, // This will suppress all logs from the Sentry plugin
errorHandler: (error) => {
console.warn('Sentry Plugin Error:', error);
// This will log the error as a warning but allow the build to continue
},
sourcemaps: {
// Specify which build artifacts should be uploaded to Sentry
assets: './dist/**',
ignore: ['./node_modules/**'],
},
}),
$(function() {
$(“.js-gps-inline-related-questions .spacer”).on(“click”, function () {
fireRelatedEvent($(this).index() + 1, $(this).data(‘question-id’));
});
function fireRelatedEvent(position, questionId) {
StackExchange.using(“gps”, function() {
StackExchange.gps.track(‘related_questions.click’,
{
position: position,
originQuestionId: 78987633,
relatedQuestionId: +questionId,
location: ‘inline’,
source: ‘Baseline_Fallback’
});
});
}
});
function toggleInlineRelated(showMore) {
var inlineRelatedLess = document.getElementById(“inline_related_var_a_less”);
var inlineRelatedMore = document.getElementById(“inline_related_var_a_more”);
var inlineRelatedSeeMore = document.getElementById(“inline_related_see_more”);
var inlineRelatedSeeLess = document.getElementById(“inline_related_see_less”);
if (showMore) {
inlineRelatedLess.classList.add(“d-none”);
inlineRelatedSeeMore.classList.add(“d-none”);
inlineRelatedMore.classList.remove(“d-none”);
inlineRelatedSeeLess.classList.remove(“d-none”);
}
else {
inlineRelatedMore.classList.add(“d-none”);
inlineRelatedSeeLess.classList.add(“d-none”);
inlineRelatedLess.classList.remove(“d-none”);
inlineRelatedSeeMore.classList.remove(“d-none”);
}
}
|