export miss props type in .d.ts
file with Vite and monorepo
#274
Labels
kind: support
Asking for support with something or a specific use case
problem: no repro
No reproduction was provided (and have not tried to repro without one)
problem: stale
Issue has not been responded to in some time
scope: integration
Related to an integration, not necessarily to core (but could influence core)
scope: Vite
Related to integration with Vite, not Rollup, which this plugin was designed for
solution: invalid
This doesn't seem right
solution: unresolved
Issue has been closed by OP but root cause has not necessarily been resolved
solution: workaround available
There is a workaround available for this issue
topic: monorepo / symlinks
Related to monorepos and/or symlinks (Lerna, Yarn, PNPM, Rush, etc)
What happens and why it is wrong
I am going to develop react components with vite and in monorepo mode.
When I build a react component the
.d.ts
file generate successfully, but the type of the component props goesany
instead of what I set in component source code.And I run
tsc src/index.tsx --declaration --emitDeclarationOnly --jsx react --esModuleInterop --outDir types
it works correct. here.d.ts
output:rollup-plugin-typescript2
:tsc
:Versions
vite.config.js
`vite.config.js`:
tsconfig.json
`tsconfig.json`:
plugin output with verbosity 3
plugin output with verbosity 3:
The text was updated successfully, but these errors were encountered: