You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I created a assets/controllers/carousel_controller.js file with the following content:
import Carousel from 'stimulus-carousel';
/* stimulusFetch: 'lazy' */
export default class CarouselController extends Carousel {
...
}
As far as I understand the stimulus-carousel file is internally trying to load the swiper file via import t from"/npm/swiper@8.4.7/bundle/+esm"; but that file doesn't exist right now.
How to handle that? Is there a way to get any further dependencies installed automatically as well? Or do I have to require that file manually? And if so... how?
Thanks for your help in advance!
How to reproduce
Install the stimulus-carouselpackage and create a stimulus controller that extends from the carousel.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I bet this is fixed in 6.4. To verify - can you remove the downloaded_to? Does it work? If so, then it's just a bug in the download functionality, which was greatly improved in 6.4.
Symfony version(s) affected
6.3.7
Description
When trying to extend a stimulus controller from the vendor package "stimulus-carousel" I get the following error in the browser console:
GET https://localhost.ddev.site/npm/swiper@8.4.7/bundle/+esm net::ERR_ABORTED 404 (Not Found)
I required the package via
php bin/console importmap:require stimulus-carousel --download
and it got added to the importmap.php file like so:Then I created a
assets/controllers/carousel_controller.js
file with the following content:As far as I understand the stimulus-carousel file is internally trying to load the swiper file via
import t from"/npm/swiper@8.4.7/bundle/+esm";
but that file doesn't exist right now.How to handle that? Is there a way to get any further dependencies installed automatically as well? Or do I have to require that file manually? And if so... how?
Thanks for your help in advance!
How to reproduce
Install the
stimulus-carousel
package and create a stimulus controller that extends from the carousel.Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: