-
Notifications
You must be signed in to change notification settings - Fork 71
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 check error with rpt2 but not tsc
-- can't repro, Vite misconfiguration
#305
Comments
If |
I created a minimal reproduction here and was unable to reproduce this error. Both
So the error you're getting is likely due to a problem in your environment, and not a bug in rpt2. The above error can be fixed by adding a non-null assertion operator ( |
tsc
-- can't repro
So you hadn't mentioned that you were using Vite, which is not Rollup, which I must've missed before when reading your config, as that is not a You didn't use So it seems like you have a misconfiguration here. |
tsc
-- can't reprotsc
-- can't repro, Vite misconfiguration
What happens and why it is wrong
rpt2 throw type error but tsc command was fine, any body help?
Environment
macOS
Versions
rollup.config.js
`rollup.config.js`:
tsconfig.json
`tsconfig.json`:
package.json
`package.json`:
plugin output with verbosity 3
plugin output with verbosity 3:
The text was updated successfully, but these errors were encountered: