Ignoring all Typescript errors on build #6716
-
Hello all. I'm migrating a large, old app to Vite just to help with the awful build times, this app is changing teams and has not been using TS properly at all, so I'd like to ignore TS errors on build entirely. Is this possible? The reason, (that can go into a tangent about polyfills, core-js, etc, but feel free to ignore it), is because I'm just trying to get the app to build to se if upgrading old libraries works. As the build keeps stopping at different points of the transformation, I suspect it's due to TS and not, say, issues with core-js. It's also stopped when transforming a date-fns esm file, and I believe that shouldn't happen. Just an example: https://gist.github.com/rodrigojmr/60c1e491d0c14cbbb457d0d40bbef211 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
you could remove vue-tsc from the build script |
Beta Was this translation helpful? Give feedback.
-
@rodrigojmr did you solve it? |
Beta Was this translation helpful? Give feedback.
-
I have this problem too |
Beta Was this translation helpful? Give feedback.
-
I have a file vite.config.ts, so I changed typescript to false |
Beta Was this translation helpful? Give feedback.
-
For me I had the build command |
Beta Was this translation helpful? Give feedback.
-
removed the |
Beta Was this translation helpful? Give feedback.
Hey @didiraja I probably should've marked this as closed - I don't recall how I solved it and I probably had something incorrect on my config and you should follow the vite docs, which state that vite itself does not perform type checking.