You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a project I want to build a library with its types, therefore I use the vue-tsc --project command to build types separately.
In this types building step, I get errors if I import types from vue in a .ts file and use them in exported types or variables.
Example in a .ts file:
exporttypeNumberRef=Ref<number>
Triggers the error: error TS4081: Exported type alias 'NumberRef' has or is using private name 'Ref'.
Other example:
exportconstcount: Ref<number>=ref(1)
Triggers the error: error TS4025: Exported variable 'count' has or is using private name 'Ref'.
I provided a minimal reproduction based on vitesse, with this commit reflecting what I'm describing here, happening with pnpm build:types or pnpm build commands.
Describe the bug
Hi,
In a project I want to build a library with its types, therefore I use the
vue-tsc --project
command to build types separately.In this types building step, I get errors if I import types from
vue
in a.ts
file and use them in exported types or variables.Example in a
.ts
file:Triggers the error:
error TS4081: Exported type alias 'NumberRef' has or is using private name 'Ref'.
Other example:
Triggers the error:
error TS4025: Exported variable 'count' has or is using private name 'Ref'.
I provided a minimal reproduction based on vitesse, with this commit reflecting what I'm describing here, happening with
pnpm build:types
orpnpm build
commands.Reproduction
pascalgermain/vitesse@fc47dec
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: