Some problems and solutions that may be encountered when using Vue

JSHint:’let’ is available in ES6(use ‘esverion:6’) or Mozilla JS Extensions (use MOz).

Solution: There are two solutions:

  • 1. Add comments at the top of js, /*jshint esVersion: 6 */

  • 2. Add the. Jshintrc configuration file in the root directory of the project, and add a section to the configuration file

{
  "esversion"6} :Copy the code

Go to Settings>Languages & Frameworks>JavaScript>Code Quality Tools>JSHint and select Default. Or select Custom Configuration File and set a global.jshintrc file so that you don’t need to create a new.jshintrc every time.

Question 2 (2020.1.22)

- Error: "Please make sure you have the correct access rights and the repository exists" when using github hosting project. - The SSH key is faulty and the server cannot be connected. Find the.ssh file in the user directory, and if there is id_rsa.pub in it, open it with Notepad and copy it. Skip step 2 and proceed to Step 3. - Step 2: Enter the command: 'ssh-keygen -t rsa -c "[email protected]" (please fill in your email address) and press Enter - Step 3: Open https://github.com/, log in to your account, go to Settings >SSH and GPG keys > New SSH key > Paste the copy in the key > Add SSH key > OKCopy the code