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
@Anubarak I stumbled upon the same problem. I decided to give a try to rspack. And it helped. Migration was really straight forward (documentation is really helpful).
Requirements for it was only having vue-loader > v17.2.0. Also adding vue-tsc is required, since rspack only transpiles typescript. But just installing it helped, I have errors highlighted in IDE (phpstorm).
My build is reduced from 12sec to 3sec and generics support in Vue's single file component works now.
I tried to use generics with webpack and while I have no problems in my current Vite project I have no clue how to make it working with webpack.
I always receive
TS2304: Cannot find name 'T'.
For example
Is there a way to enable generics with this TS Loader and webpack 5? I created a minimal repo here
https://codesandbox.io/p/sandbox/webpack-vue-3-forked-p67wfr?welcome=true
Expected Behaviour
Actual Behaviour
Steps to Reproduce the Problem
Location of a Minimal Repository that Demonstrates the Issue.
https://codesandbox.io/p/sandbox/webpack-vue-3-forked-p67wfr?welcome=true
The text was updated successfully, but these errors were encountered: