You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a developer uses a TypeScript project configured to respect export conditions, @prefresh/vite can’t be resolved by TypeScript with the following error:
> tsc --pretty
index.ts:1:22 - error TS7016: Could not find a declaration file for module '@prefresh/vite'. '/Users/lemon/dev/temporary/23-10-30-prefresh-vite-type-fix/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@prefresh/vite/src/index.js' implicitly has an 'any' type.
There are types at '/Users/lemon/dev/temporary/23-10-30-prefresh-vite-type-fix/node_modules/@prefresh/vite/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@prefresh/vite' library may need to update its package.json or typings.
1 import prefresh from '@prefresh/vite';
~~~~~~~~~~~~~~~~
Found 1 error in index.ts:1
When a developer uses a TypeScript project configured to respect export conditions,
@prefresh/vite
can’t be resolved by TypeScript with the following error:Here’s a repo that reproduces the problem: https://github.com/lemonmade/23-10-30-prefresh-vite-type-fix
The text was updated successfully, but these errors were encountered: