i run it to Stimulus Components https://www.stimulus-components.com/
but in the docs it describes how to use the components using yarn, but i am using import-map i tried to pin the components and it’s not working. so how can i use these Stimulus Components in my project?
Execute bin/importmap pin stimulus-content-loader, for example. Then you can import it as any javascript package and follow the guide.
Thanks! It works I thought that I needed jsbundling-rails to run stimulus components, but now it’s clearer to me how importmaps work.
1 Like