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

Vite can not build when using vue-ts template #7724

Closed
7 tasks done
tuan-lm97 opened this issue Apr 14, 2022 · 1 comment · Fixed by #7726
Closed
7 tasks done

Vite can not build when using vue-ts template #7724

tuan-lm97 opened this issue Apr 14, 2022 · 1 comment · Fixed by #7726
Labels
duplicate This issue or pull request already exists pending triage

Comments

@tuan-lm97
Copy link

Describe the bug

When using vite 2.9.2 and create vue project with vue-ts template.
Go to the new project Install and build

Reproduction

https://stackblitz.com/edit/vitejs-vite-wxupyy?file=_gitignore

System Info

Window 10, Chrome

Used Package Manager

npm

Logs

node_modules/@vue/reactivity/dist/reactivity.d.ts:26:15 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

26     readonly [ReactiveFlags.IS_READONLY]: boolean;
                 ~~~~~~~~~~~~~

node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1208:6 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

1208     [BooleanFlags.shouldCast]?: boolean;
          ~~~~~~~~~~~~

node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1209:6 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

1209     [BooleanFlags.shouldCastTrue]?: boolean;
          ~~~~~~~~~~~~

node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1400:10 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

1400 export { ReactiveFlags }
              ~~~~~~~~~~~~~

node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1753:10 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

1753 export { TrackOpTypes }
              ~~~~~~~~~~~~

node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1782:10 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

Validations

@sapphi-red
Copy link
Member

duplicate of #5814

@sapphi-red sapphi-red added the duplicate This issue or pull request already exists label Apr 16, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2022
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 pending triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants