frenic / csstype

Strict TypeScript and Flow types for style based on MDN data
MIT License
1.7k stars 69 forks source link

Fixing "The package may have incorrect main/module/exports" error. #159

Closed luigiMinardi closed 2 years ago

luigiMinardi commented 2 years ago

Fixing error said at issue #158 where the package entry is not resolved due to miss entry point at the package.json.

All tests passed. Running in a real project using vue and vite also works.

frenic commented 2 years ago

This will likely cause problems elsewhere. csstype is using the same as @types/x which is an empty main and types:

    "main": "",
    "types": "index.d.ts",
frenic commented 2 years ago

Changed to import type statements in README 684b078dc4b17e2e6d9e1f3c043e15eda901d85b at least