Skip to content

Error with SSR #5

@teddybee

Description

@teddybee

In Nextjs I have got this error message:

error - ./node_modules/@coreui/icons-react/es/CIcon.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules@coreui\icons-react\es\CIcon.js

Looks like your package is not SSR compatible.

Possible solution is not importing the css in js file:
vercel/next.js#19936

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions