I'm trying to use this library in a Vite build, with vanillajs template, using typescript. If I npm install this library, I can't import it in this way:
import { Hat } from 'hatjs';
gies:
> [email protected] build
> tsc && vite build
src/main.ts:1:21 - error TS2307: Cannot find module 'hatjs' or its corresponding type declarations.
1 import { Hat } from 'hatjs';
~~~~~~~
What struck me as funny is that I can use RawJS in that same way without any problems.