Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error: '}' expected at #4443

Closed
equicy opened this issue Aug 16, 2019 · 3 comments
Closed

Parsing error: '}' expected at #4443

equicy opened this issue Aug 16, 2019 · 3 comments
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author

Comments

@equicy
Copy link

equicy commented Aug 16, 2019

Version

3.9.0

Environment info

{
  "name": "demo",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "svg": "vsvg -s ./src/icons/svg -t ./src/icons/components --ext ts --es6",
    "test:e2e": "vue-cli-service test:e2e",
    "test:unit": "vue-cli-service test:unit",
    "eslint": "eslint src --ext .ts"
  },
  "dependencies": {
    "@babel/cli": "^7.5.5",
    "@types/lodash": "^4.14.136",
    "@types/qs": "^6.5.3",
    "core-js": "^2.6.5",
    "element-ui": "^2.10.1",
    "nprogress": "^0.2.0",
    "register-service-worker": "^1.6.2",
    "sass-loader": "^7.1.0",
    "vue": "^2.6.10",
    "vue-class-component": "^7.0.2",
    "vue-property-decorator": "^8.1.0",
    "vue-router": "^3.0.3",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@babel/preset-typescript": "^7.3.3",
    "@types/chai": "^4.1.0",
    "@types/js-cookie": "^2.2.2",
    "@types/mocha": "^5.2.4",
    "@types/nprogress": "^0.2.0",
    "@vue/cli-plugin-babel": "^3.9.0",
    "@vue/cli-plugin-e2e-cypress": "^3.9.0",
    "@vue/cli-plugin-eslint": "^3.5.0",
    "@vue/cli-plugin-pwa": "^3.9.0",
    "@vue/cli-plugin-typescript": "^3.9.0",
    "@vue/cli-plugin-unit-mocha": "^3.9.0",
    "@vue/cli-service": "^3.9.0",
    "@vue/eslint-config-standard": "^4.0.0",
    "@vue/eslint-config-typescript": "^4.0.0",
    "@vue/test-utils": "1.0.0-beta.29",
    "axios": "^0.19.0",
    "babel-eslint": "^10.0.1",
    "chai": "^4.1.2",
    "eslint": "^5.16.0",
    "eslint-plugin-vue": "^5.0.0",
    "js-cookie": "^2.2.0",
    "lint-staged": "^8.1.5",
    "sass": "^1.18.0",
    "sass-loader": "^7.1.0",
    "typescript": "^3.4.3",
    "vue-svgicon": "^3.2.6",
    "vue-template-compiler": "^2.6.10",
    "vuex-module-decorators": "^0.9.9"
  },
  "gitHooks": {
    "pre-commit": "lint-staged"
  },
  "lint-staged": {
    "*.{js,vue}": [
      "vue-cli-service lint",
      "git add"
    ]
  }
}

Steps to reproduce

Parsing error: '}' expected at
用vuecli3.0搭建的项目用在ts中

private handleAdd (): void {
this.type = '添加'
const upDateTenant = this.$refs.upDateTenant // 会在const前面提示Parsing error: '}' expected at
upDateTenant.popShow()
}

What is expected?

Parsing error: '}' expected at
用vuecli3.0搭建的项目用在ts中

private handleAdd (): void {
this.type = '添加'
const upDateTenant = this.$refs.upDateTenant // 会在const前面提示Parsing error: '}' expected at
upDateTenant.popShow()
}

What is actually happening?

Parsing error: '}' expected at
用vuecli3.0搭建的项目用在ts中

private handleAdd (): void {
this.type = '添加'
const upDateTenant = this.$refs.upDateTenant // 会在const前面提示Parsing error: '}' expected at
upDateTenant.popShow()
}

@sodatea
Copy link
Member

sodatea commented Aug 16, 2019

请提供完整的、可运行的代码复现。

@sodatea sodatea added the needs reproduction This issue is missing a minimal runnable reproduction, provided by the author label Aug 16, 2019
@vue-bot
Copy link

vue-bot commented Aug 26, 2019

Hello!
This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale to keep this issue open.)

Thanks for being a part of the Vue community! 💪💚️

@vue-bot
Copy link

vue-bot commented Sep 5, 2019

Hey again! 😸️

It’s been 20 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. 🤖 Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Vue community! 💚️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author
Projects
None yet
Development

No branches or pull requests

3 participants