-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
babel-make-styles
plugin causing build failures after migrating react-avatar to new DX
#18903
Comments
quick fix provided by @layershifter This looks like an issue with const rootClasses = styles.root;
const svgClasses = styles.svg;
return { containerProps, nativeProps, rootClasses, svgClasses };
};
+export const renderIcon = (
-const renderIcon = (
SVGElement: (props: { svgClasses: string }) => JSX.Element,
): React.FC<React.HTMLAttributes<HTMLSpanElement>> => props => {
const { containerProps, nativeProps, rootClasses, svgClasses } = useIconProps(props); |
I managed to get a minimal repro thanks to debugging guidance from @layershifter. It seems that this is an issue with linaria shaker. Submitted issue: callstack/linaria#804 to them with the minimal repro |
@layershifter @ling1726 I see this issue was closed callstack/linaria#804, does it mean this one could be closed as well? |
@Hotell yes, this was fixed and can be closed. |
After migrating
react-avatar
to new DX viayarn nx workspace-generator migrate-converged-pkg
build started failingThe CI file is caused by
babel-make-styles
plugin:Current:
After removing make styles plugin from babelrc:

↓↓↓↓
yarn lage build --to @fluentui/react-avatar
↓↓↓↓
can you help us out @layershifter ?
there is also another issue, that is caused by
make-styles
- it uses ES2015+ language features, thus API extractor will properly notify us that something is not ok. (this was reported/discovered by @ling1726 )You'll need to change lib to

es2015
Originally posted by @Hotell in #18866 (comment)
The text was updated successfully, but these errors were encountered: