New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript Declarations not found when using export maps #1021
Comments
The same happens on normal TS files. This is an upstream issue. |
Don't know much about ts so is there a workaround for this? |
Workaround found: https://github.com/teppeis/typescript-subpath-exports-workaround |
The upstream issue has been closed, and I'm still experiencing this |
Fixed on master already, release soon |
Fixed with the latest release. Note that you need to set |
Describe the bug
Suppose I have a npm package named
package
. The package.json ofpackage
looks like:The types directory in
package
looks like:The content of
Component.d.ts
is:Now in my app where I have svelte with typescript with the content of the
tsconfig.json
asand my
svelte.config.js
is:And in my Svelte file I import
package/Component
:To Reproduce
pnpm i
cd app
src/Page.svelte
Expected behavior
No ts error
Information about your project:
svelte-preprocess
version 4.7.3The text was updated successfully, but these errors were encountered: