Closed mchao123 closed 4 weeks ago
Hi @mchao123, I think what the error is saying is that you have to import the type like this:
import type { TresPrimitive } from '@tresjs/core`
Instead of
import { TresPrimitive } from '@tresjs/core`
If you have the verbatimModuleSyntax
enabled in your tsconfig. See https://stackoverflow.com/questions/76983697/why-does-my-vue-vite-typescript-application-require-me-to-separate-import-and
It's a misrepresentation on my part, it seems that there is no type declaration for "primitive" to be introduced on demand
Describe the bug
Bad types, unpredictable code, and false positives prevent me from using load-on-demand.Consider removing the global type declaration unless I actively add it?
Reproduction
none
Steps to reproduce
No response
System Info
No response
Used Package Manager
npm
Code of Conduct