framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.08k stars 3.23k forks source link

Bugfix: Fix there are types at 'framework7.d.ts' but this result could not be resolved when respecting package.json #4231

Closed anisjonischkeit closed 8 months ago

anisjonischkeit commented 10 months ago

Fixes #4181

I'm importing framework7 in an astro project (vite) and I get the same error as in the above issue.

There are types at 'Documents/my-project/node_modules/framework7/framework7.d.ts', but this result could not be resolved when respecting package.json "exports". The 'framework7' library may need to update its package.json or typings.

The above seems to fix it. I know very little about this project so if this isn't the right approach (or it causes other issues) feel free to close.

Using: node 18 Typescript 5

peitschie commented 10 months ago

Just confirming, this has fixed the issue for me as well using VueJS 🙂

nolimits4web commented 8 months ago

Merged, thanks!