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

Expected ")" but found ":" #6657

Closed
vaban-ru opened this issue Sep 13, 2022 · 1 comment
Closed

Expected ")" but found ":" #6657

vaban-ru opened this issue Sep 13, 2022 · 1 comment

Comments

@vaban-ru
Copy link

vaban-ru commented Sep 13, 2022

Vue version

3.2.39

Link to minimal reproduction

https://github.com/vaban-ru/vue-tsc-reproduction-issue

Steps to reproduce

yarn install
yarn build

What is expected?

Expected clean build the library without errors

What is actually happening?

[vite:esbuild] Transform failed with 1 error:
C:/dev/test/vue-tsc-issue-reproduction/src/components/Base/SvButton/SvButton.vue?vue&type=script&setup=true&lang.ts:65:59: ERROR: Expected ")" but found ":"
file: C:/dev/test/vue-tsc-issue-reproduction/src/components/Base/SvButton/SvButton.vue?vue&type=script&setup=true&lang.ts:65:59

Expected ")" but found ":"
63 |    },
64 |    emits: ["click"],
65 |    setup(__props: any, { emit }: { emit: (    "btn--primary": props.primary,
   |                                                             ^
66 |        "bt), expose: any, slots: any, attrs: any }) {
67 |  

image

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
    Memory: 3.33 GB / 15.77 GB
  Binaries:
    Node: 14.18.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.33)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    vue: ^3.2.39 => 3.2.39

Any additional comments?

Additional libraries:

"typescript": "^4.8.3",
"vite": "^3.1.0",
"vue": "^3.2.39",
"vue-tsc": "^0.40.13",
"@vitejs/plugin-vue": "^3.1.0",

Very similar to this issue: #5830

@edison1105
Copy link
Member

duplicate of #5830

@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants