Comments (6)
This is fixed now in v0.1.0
.
from svelte-paginate.
Hi @azzamsa,
You have to add "svelte": "src/index.js
and "type":"module"
into package.json
from svelte-paginate.
I think it is already there https://github.com/azzamsa/svelte-paginate/blob/364affd5527a66df4f69646a53cdf958c46670b2/package.json#L12
from svelte-paginate.
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.
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.
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)
- Question no a bug HOT 1
- on:click HOT 1
- Update controls for accessibilty
- totalPages become undefined HOT 1
- Style LightPaginationNav HOT 1
- Active page number has a small bug HOT 1
- Warning during svelte kit build HOT 8
- Customizing the options of the LightPaginationNav navigation component
- Bug with using it in the newest version(s) of SvelteKit HOT 4
- Question HOT 1
- Project maintenance HOT 1
- Uncaught TypeError: items is undefined HOT 7
- pass state to slot
- Go to top after change currentPage HOT 1
- Is items a keyword
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-paginate.