Full featured HTML framework for building iOS & Android apps
17.98k
stars
3.24k
forks
source link
There are types at `node_modules/framework7/framework7.d.ts` but this cannot be resolved when respecting package.json "exports" #4181
Closed
arnu515 closed 5 months ago
8.0.5
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:
npm init vite
. Select React with Typescript.framework7
andframework7-react
with NPMframework7/lite
insrc/main.tsx
. The error should be visible. The framework7 library will not be typedsrc/main.tsx
tosrc/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