#An error occurred.

4 messages · Page 1 of 1 (latest)

severe wharf
#

Missing "./dist/nextui.css" specifier in "@nextui-org/react" package
Stack Trace
Error: Missing "./dist/nextui.css" specifier in "@nextui-org/react" package
at e (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47596:25)
at n (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47596:627)
at o (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47596:1297)
at resolveExportsOrImports (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:48286:20)
at resolveDeepImport (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:48305:31)
at tryNodeResolve (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:48030:20)
at Context.resolveId (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:47780:28)
at Object.resolveId (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:51057:64)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Context.resolve (file:///F:/web/astro-nextui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50748:23)

I've tried importing and using next ui and ive done everythin covered by there instructions but i wont get it to work

proven sirenBOT
#

Hi @severe wharf. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about the error you're encountering with the "@nextui-org/react" package in Astro.

However, based on similar issues with other packages, it could be related to how Vite, the build tool used by Astro, handles imports from certain packages. Some packages may not be compatible with Vite or may require specific configuration to work correctly.

I would recommend checking the documentation of both Astro and the "@nextui-org/react" package for any known issues or required configuration steps. If the issue persists, consider reaching out to the Astro community or the maintainers of the "@nextui-org/react" package for further assistance.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@severe wharf kapa.ai is still learning and improving, please let us know how it did by reacting below