Category Archives: How to Fix

Error 3 error C2065: ‘endl‘ : undeclared identifier-Error 2 error C2065: ‘cout‘ : undeclared identif

As you can see, I just want to print something, and iostream is added, but that means I cout can’t use it.

hold   If StdAfx. H is placed at the front of the whole file, no error will be reported

In fact, if other header files are mentioned to the front, an error will be reported – this may be the provision of VS2010,   StdAfx. H must be first.

 

Even if you comment it out   All include in StdAfx. H are commented out. Whether the compilation passes or not.

 

 

AttributeError:‘AxesSubplot’object has no attribute‘bar_label’

Question:

Using bar in Matplotlib_ An error was encountered in the label function:
attributeerror: 'axessubplot' object has no attribute 'bar_ label'

resolvent:

Because the version of Matplotlib is too low, you need to reinstall Matplotlib (enter the following command in the console)

â‘  Uninstall Matplotlib

conda uninstall matplotlib

â‘¡ Download again

pip install matplotlib

Vue—— Error: Redirected when going from “/“ to “/directory/tree“ via a navigation guard


209150;”

/src/router/index.js:

const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location, onResolve, onReject) {
  if (onResolve || onReject)
    return originalPush.call(this, location, onResolve, onReject);
  return originalPush.call(this, location).catch(err => err);
};

[Solved] Vue Project Error: This relative module was not found

Vue project error: this relative module was not found

The questions are as follows

Solution:

If this error occurs, check your own path. I have solved the problem

“. /”: represents the current directory.

“.. /” represents the upper level directory.

“.. /. /” represents the upper level directory.

And so on

I have solved it successfully

Create xxx.vue file with vscode, add comments and report error

Create xxx.vue file with vscode, add comments and report error

Create a. Vue file

When we use vscode to create. Vue files, we need to install relevant plug-ins that support Vue, such as vetur

    after installing the plug-in,
    there will be an error in adding comments. This should be due to some conflict in the installed plug-in. To solve the error in adding comments, you can add a div tag to the template tag, that is

An error is reported about import Java. SQL. *; problem

Many people always have this problem during package guide when learning java to connect to MySQL database

The package java.sql is not accessible

This problem is a problem with the Java version. Since java9, Java has become modular. You need to declare the use of the module package in the module file, otherwise you can’t find the class.

In module-info.java   Add requires java.sql; Just

  So the problem is solved

Vue project reports an error on ie11 white screen. Script1002: syntax error

Problem phenomenon

The project is a front-end project built with Vue/cli3 scaffold, and Vue version is 2.6.10.

Ie11 error reporting problems are as follows:

  (there was no screenshot in the error report at that time, but someone else’s picture was used)

 

It’s annoying that there’s no way to check mistakes like this

Baidu a pile, all copy to copy, the key has not been able to solve the problem, shit! Omnipotent Google up

  In fact, this problem is obviously a syntax error, that is, the problem that ie does not support, ie garbage

Since it’s a syntax problem, it’s a compilation problem. Let’s directly compile the corresponding package, but which package is it

Here’s the point: when you click the error message, you will find that the place where the breakpoint is is the place where the error is reported. That must be the problem here, but this is the compiled code. How to check which package is a headache!

When I was having a headache, I found that the comment above was the name of the package???

It’s like discovering a new world

It’s him. This picture is not my error information. My error information is

./node_modules/[email protected]@js-base64.js

Since the package with the problem is found, specify that it be compiled; Using webpack

Directly configure the compiled code in vue.config.js

transpileDependencies: [
    /[/\\]node_modules[/\\][email protected]@js-base64[/\\]/,
 ],

Then directly NPM run serve

be accomplished! It’s done! go off work!

The vscode installation plug-in liveserver specified browser reported an error and could not be found

Problem Description:

After installing vscode, you do not want to use the default IE browser. You want to specify chrome or Firefox, but install the plug-in lever server or other browser plug-ins. When specifying the default browser, windows reports an error and cannot find chrome or Firefox
after reading many posted on the Internet, they are configured in settings.json. After personal practice, they have no effect. Later, after their own exploration, they found that the plug-in can’t find your chrome or Firefox. It’s not that you haven’t installed it on your computer, let alone on disk C; But because when a plug-in such as lever server specifies a browser, the windows system will find the installation directory of the software according to the system variables.

terms of settlement:

1. Open the control panel of the computer – & gt; System and security —– & gt; System
2. Open advanced system settings, click environment variables, system variables, and add a new variable named path: D: \ Kiki \ Mozilla Firefox
this directory is the directory where your Google or Firefox exe files are located
3. After configuring environment variables and saving, restart vscode