Closed prodbyola closed 1 year ago
Hello @prodbyola, there are 2 errors imo, the first "'Vlitejs' is declared but its value is never read" explains that you have imported the library but there is no use of the variable (initialization etc).
The second is related to TypeScript declaration files, not currently available, but can be ignored in the configuration
Thanks @yoriiis, I think it's truly related to Typescript declaration files. I'm not sure I want to ignore it in configuration though. Thanks for the heads up.
Okay so I'm closing this one because it's already been discussed in #50
Describe the bug
After installing the library from npm, I tried importing it in my tsx file:
import Vlitejs from 'vlitejs';
But the import gives an error: "Could not find a declaration file for module 'vlitejs'" and my program would not compile. I tried installing "@types/vlitejs" but it's not found on npm.
Steps to reproduce
Expected behavior
Succesfully import and initialize Vlite.js in React/Typescript
Screenshots and recordings
No response
Vlite.js
4.2.0
Browser
Chrome 105.0.5195.127 (Official Build) (64-bit)
OS
Windows 11
Additional context
No response