Even though I have set Vue.config.silent=true, it continues to display warning information

https://i.sstatic.net/mlZS5.png When testing the Vue.config.silent by using Vue.set(a,4) to trigger a warn message, I noticed that even when setting Vue.config.silent=true, the warning information is still being printed.

You can find the code here.

However, after changing the position of the code, the silent mode takes effect and no warning information is displayed.

https://i.sstatic.net/EHDQ9.png

The Vue source code also uses the silent mode to control whether warning information should be printed. https://i.sstatic.net/sRK1F.png

Answer №1

The issue arises when using codesandbox. Setting silent=true will resolve the problem in your project

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What would be more efficient for designing a webpage - static HTML or static DOM Javascript?

My burning question of the day is: which loads faster, a web page designed from static html like this: <html> <head> <title>Web page</title> </head> <body> <p>Hi community</p> </bo ...

Determining the Presence of an Element in a JavaScript Array

I am dealing with a JavaScript array that looks like this var open_chats = []; open_chats.push({ "chatid": 'dfsfsdfsdf', "data": 'adfsdf' }); I'm trying to ascertain whether an item exists in this array, and I've bee ...

Obtaining the current month and year from a Kendo calendar

How can I retrieve the current month from a calendar? I need to be able to display the previous, current, and next month and year as I navigate through the calendar's options. ...

Using only CSS to reverse the order of Bootstrap rows within a forEach statement in a .php file

I am facing a challenge in reversing rows within a forEach statement. For instance, in the first row, the content's div (title, text) should be on the left side and the image on the right side. In the second row, it should be reversed, with the image ...

Avoiding the triggering of jQuery events from child elements

Here is the code snippet I am working with: <html> <head> <script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"> </script> </head> <body> <div id=&q ...

Warning: Promise rejection not caught in _.map function in NodeJs

Every time I run the code snippet below, I encounter an error - UnhandledPromiseRejectionWarning: Unhandled promise rejection. This issue is caused by either throwing inside an async function without a catch block or rejecting a promise without handling it ...

Tips for updating the chosen value with jquery or javascript

I am facing a situation where I need to change the selected option in a dropdown menu using a function triggered onClick later in the application. <select id="myselect"> <option value=aa>aa</option> <option value=bb>bb</option&g ...

Ways to clear a component's data

There are specific situations where I need to reset a component's data back to its initial values. To achieve this, instead of defining properties directly within the data() method, I use a function that returns a data object like so: data() { ret ...

The connection to the firebase callback

Upon examining this function, it appears that there may be an issue with a null value causing the error message to display: (node:16232) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'groupPages' of null async setTriggers() { ...

Guide to implementing two methods in a @click event with vue.js?

Here is the code I've been working on, and my goal is to incorporate CHANGEBUTTONS into the onclick event that resembles @click. <button @click="enviarform2" value="Delete from favorites" style="font-weight: 700;color:#428bca;margin-left:30px;heig ...

Unit testing in Typescript often involves the practice of mocking

One challenge with mocking in Typescript arises when dealing with complex objects, as is the case with any strongly-typed language. Sometimes additional elements need to be mocked just to ensure code compilation, such as using AutoFixture in C#. In contras ...

Selecting radio buttons in IE11 using JQuery

The code snippet below is used for handling form submission: $(".submitButton").click(function(event){ if ($(this).hasClass("disabled")){ event.preventDefault(); return false; } if (!$(this).hasClass("disabled")){ $('.invoice-form&a ...

Having multiple instances of jQuery running concurrently on a single webpage

I am a novice when it comes to jQuery and I'm facing some issues with it. I have a basic slideshow and a weather plugin that I would like to incorporate, but strangely they both seem to malfunction when used together. <script src="js/jquery.js"> ...

What is the best way to monitor React hooks efficiently?

Prior to diving into a new React project, I always make sure that there are adequate developer tools available for support. One of my favorite features in React is the React Developer tool for Google Chrome. It allows me to examine the internal state of e ...

Rearrange the provided string in a particular manner

Looking to transform a string like '12:13:45.123 UTC Sun Oct 17 2021' into 'Sun Oct 17 2021 12:13:45.123 UTC' without calling slice twice. Is there a more elegant and efficient way to achieve this? Currently using: str.slice(18)+&apo ...

Updating parent array values within child components in React

Currently, I am working on a React application where I need to save the handlers for all windows opened from the app. Previously, before using React, I stored these windows in a global array attached to the parent window, although I understand that using J ...

Encountering a problem during the creation of a fresh Angular 2 project

After installing AngularJs with the command npm install -g angular-cli, I encountered an error when trying to create a new project: Cannot find module 'reflect-metadata' How can I resolve this error? ...

Using TextField with nested Object for onChange Event

I have a question that needs some clarification. Here is the current structure of my object. Within "allgemein," there are currently two variables, but they will increase over time... { id: "Abadi", name: "Abadi", type: "SC", allgemein: { ...

Display all collections in Mongo DB except for a specific one

Is there a way in MongoDB to retrieve all documents except for one named Test? The current code retrieves all the documents. db.getCollectionNames().forEach(function(collection) { var result = db[collection]; if(result !== 'Test') { ...

After the upgrade from Angular 5.2 to Angular 6, Bootstrap 4 dropdown and Bootstrap-select dropdown seem to have lost their dropdown functionality. This issue arose after updating to Bootstrap 4 and jquery

Update: Upon further investigation, I experimented with a standard Bootstrap 4 dropdown and encountered the same issue – it would not open. This leads me to believe that the problem may not be specific to the selectpicker class or the bootstrap-select de ...