coreui/coreui-icons-react

Error message: "Please use default export since named exports are deprecated"

ziyaddin opened this issue · 1 comments

What is the purpose of this error message?

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";