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
I get the error: TypeError: viteCompression is not a function. When I use viteCompression.default() instead, it works, but I have to use // @ts-ignore in the line above. The import returns this:
{ default: [Function: src_default] }
When I import the module with the star: import * as viteCompression from 'vite-plugin-compression. It returns an object with double-nested default:
When I try to import the plugin according to the tutorial:
I get the error:
TypeError: viteCompression is not a function
. When I useviteCompression.default()
instead, it works, but I have to use// @ts-ignore
in the line above. The import returns this:When I import the module with the star:
import * as viteCompression from 'vite-plugin-compression
. It returns an object with double-nested default:This is my
tsconfig.json
:The text was updated successfully, but these errors were encountered: