- Framework7 version:
8.0.5
- Platform and Target:
React with Capacitor
Describe the bug
Framework7 (core module) typings do not work when used in a typescript file. They do however work when used in javascript.
To Reproduce
Steps to reproduce the behavior:
- Create a new vite project using
npm init vite. Select React with Typescript.
- Install
framework7 and framework7-react with NPM
- Import
framework7/lite in src/main.tsx. The error should be visible. The framework7 library will not be typed
- Rename
src/main.tsx to src/main.jsx. The error is now gone, and the library is properly typed.
Expected behavior
The library should be typed and the error should not be there
Actual Behavior
There is an error while importing the types.
Screenshots
The error in typescript file:

Renaming to js file fixes the issue:

Additional context
None