19:54:29 [ERROR] vite_ssr_import_0.default.div is not a function
Stack trace:
at C:UsersprashOneDriveDesktoptac-websitesrcstylesHeader.js:3:42
[…] See full stack trace in the browser, or rerun with –verbose.
I have tried the following steps to resolve the issue:
- Verified that all dependencies are correctly installed.
- Ensured that the astro.config.mjs file includes the React integration.
- Cleared the node_modules directory and reinstalled dependencies.
Despite these efforts, the same error persists. I expected the styled component to render correctly within my Astro project, but it seems like there’s an issue with how styled-components is being imported or used.
What additional context or details should others know about?
Node.js version: 18.3.1
Operating System: Windows`
Prashanth Banda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.