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

Type assertion using as not compiled properly in pug templates #122

Closed
8 of 9 tasks
Jevon617 opened this issue Mar 6, 2023 · 1 comment
Closed
8 of 9 tasks

Type assertion using as not compiled properly in pug templates #122

Jevon617 opened this issue Mar 6, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Jevon617
Copy link

Jevon617 commented Mar 6, 2023

Related plugins

Describe the bug

Look this way

Reproduction

https://github.com/qnp/vue3-pug-template-ts-assertion-bug

Steps to reproduce

  1. Clone the repository.
  2. Run yarn then yarn dev
  3. Open the app URL in your browser
  4. You see a blank page and an error in the console:
Uncaught SyntaxError: Unexpected identifier 'as' (at App.vue?vue&type=template&lang.js:5:63)

System Info

System:
    OS: macOS 12.5.1
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Memory: 22.93 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
  Browsers:
    Chrome: 109.0.5414.119
    Firefox: 109.0
    Firefox Developer Edition: 71.0
    Firefox Nightly: 76.0a1
    Safari: 15.6.1
  npmPackages:
    vue: ^3.2.45 => 3.2.45

Used Package Manager

yarn

Logs

No response

Validations

@sapphi-red
Copy link
Member

Duplicate of #18

@sapphi-red sapphi-red marked this as a duplicate of #18 Mar 7, 2023
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2023
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Mar 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants