vadimkorr / svelte-carousel

The awesome carousel component for Svelte 3 :arrow_left: :art: :arrow_right:
https://vadimkorr.github.io/svelte-carousel
Apache License 2.0
290 stars 64 forks source link

Unknown file extension error on initial page load of svelte-kit site #127

Closed michael-farwell closed 1 year ago

michael-farwell commented 1 year ago

Upon initial page load of built app, I get the following error: Unknown file extension ".svelte" for **/node_modules/.pnpm/svelte-carousel@1.0.21/node_modules/svelte-carousel/src/components/Carousel/Carousel.svelte

After researching, I was able to figure out that the issue is that the package.json is missing the "svelte" field. This should point to the same place that "main" and "module" are pointing to.

package.json

{
  "name": "svelte-carousel",
  "version": "1.0.21",
  "description": "Svelte carousel",
  "main": "src/main.js",
  "module": "src/main.js",
  "svelte": "src/main.js" <--
  ...
}

I did test this locally and it appeared to have worked perfectly. Could this change be implement please?

Also, fantastic library!!

oetiker commented 1 year ago

tested it too, works. PR #128

vadimkorr commented 1 year ago

merged, thank you