We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
TS2304: Cannot find name 'T'.
<script setup lang="ts" generic="T extends string"> interface Props { modelValue: T; } const props = defineProps<Props>(); </script> <template>{{ modelValue }}</template>
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
https://codesandbox.io/p/sandbox/webpack-vue-3-forked-p67wfr?welcome=true
The text was updated successfully, but these errors were encountered:
So I guess this is not possible?
Sorry, something went wrong.
No branches or pull requests
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: