Failed to resolve module specifier swup #647
-
Hello everyone, i need help I want to add swup transition page in my Astro websites, I installed the pacakges, add a app.js file in public folder where I inizialize Swup. "caught TypeError: Failed to resolve module specifier "swup". Relative references must start with either "/", "./", or "../"." /public/app.js src/layouts/Layout.astro Console.error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Sounds like either |
Beta Was this translation helpful? Give feedback.
Sounds like either
swup
isn't installed correctly in yourpackage.json
or Astro isn't set up to bundle npm dependencies. Hard to say from here. Have you posted this in an Astro forum or support channel? They will be much better suited to help you out as this is an Astro issue and not a swup problem.