liamseys's avatar

Rollup failed to resolve import

Error: [vite]: Rollup failed to resolve import "@splidejs/splide-extension-auto-scroll" from "/home/forge/eventsb2b.be/resources/js/bootstrap.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

How can I fix this? I never had this issue before after installing a package with NPM.

0 likes
1 reply
MohamedTammam's avatar

I see that this error is in the server. Did you run npm i before building?

Can you please share your deployment script.

Please or to participate in this conversation.