Skip to content
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

Error: "[name] is not exported by [module]" #192

Open
rexkenley opened this issue Sep 8, 2022 · 0 comments
Open

Error: "[name] is not exported by [module]" #192

rexkenley opened this issue Sep 8, 2022 · 0 comments

Comments

@rexkenley
Copy link

rexkenley commented Sep 8, 2022

I am using a package called react-social-icons that is causing an error when I try to build my library.

How do I fix it? (I did some research and it suggests using the commonjs plugin namedExports, but I am not sure if that is compatible with your plugin.)

Thanks!

[!] Error: 'SocialIcon' is not exported by node_modules/react-social-icons/build/react-social-icons.js, imported by src/components/SocialPane/SocialPane.tsx https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module src/components/SocialPane/SocialPane.tsx (3:9) 1: // Automatically generated component file for SocialPane 2: import { Stack } from "@fluentui/react/lib/Stack"; 3: import { SocialIcon } from "react-social-icons"; ^ 4: import { ISocialIcon } from "powerframework360/lib/ts/interfaces/socialIcon"; Error: 'SocialIcon' is not exported by node_modules/react-social-icons/build/react-social-icons.js, imported by src/components/SocialPane/SocialPane.tsx at error (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:198:30) at Module.error (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:12542:16) at Module.traceVariable (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:12901:29) at ModuleScope.findVariable (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:11553:39) at FunctionScope.findVariable (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:6486:38) at ChildScope.findVariable (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:6486:38) at FunctionScope.findVariable (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:6486:38) at ChildScope.findVariable (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:6486:38) at Identifier.bind (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:7553:40) at CallExpression.bind (C:\Temp8\PowerFramework360\node_modules\rollup\dist\shared\rollup.js:5379:73)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant