1

Here is a sandbox with Nuxt and Flowbite.

Imported according to instructions from Flowbite

The problem is that the styles of the flowbite components are displayed correctly, but the dynamic components do not work.

What could be the problem?

Perhaps this is due to the fact that the nuxt application is selected to render as static, because with SSR rendering dynamic components work, but this is not suitable for me, I need an application without SSR.

kissu
  • 40,416
  • 14
  • 65
  • 133
Wockeez
  • 396
  • 1
  • 4
  • 11
  • You're using `ssr: false`, so this is an SPA. Setting `target: 'server'` have no real sense tbh because it will be a single entry point anyway (since it's an SPA). I'll maybe try to debug this one later on. What is not working exactly? Could you highlight this part? Like the modal? – kissu Mar 21 '22 at 16:37
  • @kissu All dynamic elements do not work in the sandbox (modal, close alert, etc.) – Wockeez Mar 21 '22 at 22:21

1 Answers1

2

Update

Achieved to make it work with Nuxt3 thanks to this comment, here's a working Github repo.


Old answer

I've spent more time working on this subject recently. Check my answer here for more details.

TLDR: Nuxt2 and 3 are not supported regarding the components requiring some JS (modals, dropdown etc...).

kissu
  • 40,416
  • 14
  • 65
  • 133