stabilow
Hello all,
I am new to Phoenix and web development (but love both of them).
I am writing a toy application and decided to use https://tailwind-elements.com that provides me with some cool components.
I successfully managed to install the library and use it in my app.
However, I encountered a small issue and I have some difficulties to fix it. Maybe you could give me a hand! ![]()
The issue is the following. I am working within a LiveView, and use the video carousel basic example from https://tailwind-elements.com/docs/standard/components/video-carousel. Once the LiveView’s socket is connected, the carousel disappears. If I remove the line liveSocket.connect(); from my app.js then everything works fine.
Do you have any idea ?
Thank you in advance !
Best
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
benstepp
I’m not too sure how the library works, but you should be able to use a phx-hook for this, something like:
stabilow
Thank you, it works perfectly with the
phx-hook.elvanja
@stabilow how did you manage to install tw-elements?
I did:
npm install tw-elements --savein assets folder"./node_modules/tw-elements/dist/js/**/*.js",to tailwind configrequire("tw-elements/dist/plugin")in pluginsBut I keep getting
Error: Cannot find module '@tailwindcss/forms'which is strange. Also, when tw-elements stuff is removed, that line does not fail.Thank you for your time!
P.S. Maybe better open a new thread?