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
which I then re-export to the main export file with:
export { default as Button, type ButtonProps } from './Button';
however when I do this, the output I get ignores the export and only shows keys, and I cant import said component.
A cleaner example is with:
export { Input, type InputProps } from './Input'; export { default as Button, type ButtonProps } from './Button';
the export at the bottom of the output is export {$473d5122cb4643a5$export$f5b8910cec6cf069 as Input, $893fdaddba73b336$export$ed97f33186d4b816 as keys};
I have no doubt its a rule or something ive setup wrong so any help is appreciated, for now im just moving to the named exports as its no biggie, just seems odd
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My normal way of exporting / laying out components
which I then re-export to the main export file with:
export { default as Button, type ButtonProps } from './Button';
however when I do this, the output I get ignores the export and only shows keys, and I cant import said component.
A cleaner example is with:
export { Input, type InputProps } from './Input'; export { default as Button, type ButtonProps } from './Button';
the export at the bottom of the output is
export {$473d5122cb4643a5$export$f5b8910cec6cf069 as Input, $893fdaddba73b336$export$ed97f33186d4b816 as keys};
I have no doubt its a rule or something ive setup wrong so any help is appreciated, for now im just moving to the named exports as its no biggie, just seems odd
Beta Was this translation helpful? Give feedback.
All reactions