AstroJS + Vite npm module import error
Hey, I have an npm module I'm trying to use in an Astro component.
When I try to build my app, it gives me the following error:
I also tried to add this, as suggested by the error message but that didn't fix it:
This is probably really obvious but I've tried looking it up and can't find anything, would love some help if possible
1 Reply
Worst case scenario I put it inside it's own
.js
file but I'd really like to avoid that if possible. This would be a great thing to put inside a component so I can use it in multiple different places