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
Type files aren't built to dist/types.d.ts. Instead, they're built to dist/src/types.d.ts. This appears to be caused by this line in src/types.ts:
export type { Image, Picture } from '../components/index.js';
Unfortunately, you can't import outside of src without causing weird behavior like this. Can we construct these types ourselves? Something like this pseudocode:
import {AstroComponentFactory} from 'astro';
export type Image = AstroComponentFactory<...>;
export type Picture = AstroComponentFactory<...>;
To reproduce:
Run build inside of the integrations/image folder with a clear dist folder.
Link to Minimal Reproducible Example
See above
Participation
I am willing to submit a pull request for this issue.
The text was updated successfully, but these errors were encountered:
What version of
astro
are you using?latest
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
pnpm
What operating system are you using?
mac
Describe the Bug
https://unpkg.com/browse/@astrojs/image@0.1.2/dist/
Type files aren't built to
dist/types.d.ts
. Instead, they're built todist/src/types.d.ts
. This appears to be caused by this line insrc/types.ts
:Unfortunately, you can't import outside of
src
without causing weird behavior like this. Can we construct these types ourselves? Something like this pseudocode:To reproduce:
Run
build
inside of theintegrations/image
folder with a cleardist
folder.Link to Minimal Reproducible Example
See above
Participation
The text was updated successfully, but these errors were encountered: