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 message: "Please use default export since named exports are deprecated" #3

Open
ziyaddin opened this issue Mar 12, 2021 · 1 comment

Comments

@ziyaddin
Copy link

What is the purpose of this error message?

@ziyaddin ziyaddin changed the title Please use default export since named exports are deprecated Error message: "Please use default export since named exports are deprecated" Mar 12, 2021
@ziyaddin
Copy link
Author

The error message is misleading, "import" is better wording than "export" in this sentence.

The solution is importing like this:

import CIcon from "@coreui/icons-react";

instead of this:

import { CIcon } from "@coreui/icons-react";

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