Closed ZWLau closed 2 years ago
?component suffix works fine in development mode, but when in production mode, the corresponding module cannot be found error TS2307: Cannot find module '@/assets/icons/delete.svg?component' or its corresponding type declarations.
@ZWLau why'd you close? what was the solution?
add the global component type definition to compilerOptions.types in tsconfig.json
?component suffix works fine in development mode, but when in production mode, the corresponding module cannot be found error TS2307: Cannot find module '@/assets/icons/delete.svg?component' or its corresponding type declarations.