Giter Site home page Giter Site logo

Comments (6)

TahaSh avatar TahaSh commented on July 20, 2024 1

This is fixed now in v0.1.0.

from svelte-paginate.

bas-baskara avatar bas-baskara commented on July 20, 2024

Hi @azzamsa,
You have to add "svelte": "src/index.js and "type":"module" into package.json

from svelte-paginate.

azzamsa avatar azzamsa commented on July 20, 2024

I think it is already there https://github.com/azzamsa/svelte-paginate/blob/364affd5527a66df4f69646a53cdf958c46670b2/package.json#L12

from svelte-paginate.

bas-baskara avatar bas-baskara commented on July 20, 2024

The result of svelte-check from https://github.com/bas-baskara/svelte-paginate :

====================================
svelte-check found 0 errors, 0 warnings, and 1 hint
redpoint@redpoint-MS-7D18:~/Documents/GITHUB/spt$ npm run check

[email protected] check
svelte-check --tsconfig ./tsconfig.json

====================================
Loading svelte-check in workspace: /home/redpoint/Documents/GITHUB/spt
Getting Svelte diagnostics...

/home/redpoint/Documents/GITHUB/spt/src/generateNavigationOptions.ts:31:11
Hint: 'value' is declared but its value is never read.
.fill(null)
.map((value, index) => ({
type: 'number',

/home/redpoint/Documents/GITHUB/spt/src/generateNavigationOptions.ts:46:13
Hint: 'value' is declared but its value is never read.
.fill(null)
.map((value, index) => {
if (index === totalShownPages - 1) {

/home/redpoint/Documents/GITHUB/spt/src/generateNavigationOptions.ts:67:13
Hint: 'value' is declared but its value is never read.
.fill(null)
.map((value, index) => {
if (index === 0) {

/home/redpoint/Documents/GITHUB/spt/src/generateNavigationOptions.ts:88:13
Hint: 'value' is declared but its value is never read.
.fill(null)
.map((value, index) => {
if (index === 0) {

/home/redpoint/Documents/GITHUB/spt/src/PaginationNav.svelte:28:31
Hint: Parameter 'option' implicitly has an 'any' type, but a better type may be inferred from usage. (js)

function handleOptionClick (option) {
dispatch('setPage', { page: option.value })

from svelte-paginate.

azzamsa avatar azzamsa commented on July 20, 2024

The errors above is produced by the dependant of svelte-paginate.

I am using svelte paginate on my app. And svelte-check produces the errors above.

Do you have the same issue in your app that use svelte-paginate?

from svelte-paginate.

bas-baskara avatar bas-baskara commented on July 20, 2024

hi @azzamsa,
Yes but after I modified it by adding "svelte": "src/index.js and "type":"module" into package.json, the error was disappeared.

from svelte-paginate.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.