ErnaneJ / svelte-star-rating

Simple Svelte component, with no dependencies, for implementing and capturing assessments through a simple and intuitive interface that will take you to the stars. ✨
https://www.npmjs.com/package/@ernane/svelte-star-rating
MIT License
36 stars 10 forks source link

can not find #18

Open craigcosmo opened 3 months ago

craigcosmo commented 3 months ago

CleanShot 2024-08-13 at 09 53 54

I got this bug: Cannot find module '@ernane/svelte-star-rating' or its corresponding type declarations

my package

                "@silintl/svelte-google-places-autocomplete": "^1.2.5",
        "@sveltejs/adapter-auto": "^3.2.3",
        "@sveltejs/adapter-node": "^5.2.1",
        "@sveltejs/kit": "^2.5.21",
        "@sveltejs/vite-plugin-svelte": "^3.1.1",
        "@types/bun": "^1.1.6",
        "@types/js-cookie": "^3.0.6",
        "@types/store": "^2.0.5",
        "@typescript-eslint/eslint-plugin": "^8.0.1",
        "@typescript-eslint/parser": "^8.0.1",
                "tailwindcss": "^3.4.9",
        "tslib": "^2.6.3",
        "typescript": "^5.5.4",
        "uniqid": "^5.4.0",
        "vite": "^5.4.0",
        "vitest": "^2.0.5"
erikjalevik commented 1 month ago

Also seeing this along with this error on npm run dev:

Error: <StarRating> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <StarRating>.

craigcosmo commented 1 month ago

I wrote my own star rating component, faster than debugging this package.