Comments (9)
I have similar code in this repository in SvelteKit demo: https://github.com/iconify/iconify/blob/main/components-demo/sveltekit-demo/src/lib/header/Header.svelte
But I'm not seeing any errors.
Can you create a basic reproduction?
from iconify.
try importing @iconify/svelte
in src/app.d.ts
: check for example unplugin-icons Svelte usage in SvelteKit, Frameworks section
from iconify.
Hello, Thanks so much for the feed back. I've installed sveltekit from scratch, I install Iconify and it's still happening.
I've created this repo. It's actually happening here: https://github.com/PavelJacoboGonzalez/iconify_test/tree/development
At first I thought it was due to Svelte for Vscode extension, but not 100% sure about it.
Thanks for feedback
Regards
from iconify.
can you add import '@iconify/svelte';
before L3 and restart VSCode window?: https://github.com/PavelJacoboGonzalez/iconify_test/blob/development/src/app.d.ts#L3
https://github.com/unplugin/unplugin-icons/blob/main/examples/sveltekit/src/app.d.ts#L1
from iconify.
@cyberalien Svelte 4 has changed the defintiion, you're using Svelte 3, for Svelte 4 you need to change to this one:
https://github.com/unplugin/unplugin-icons/blob/main/types/svelte4.d.ts#L9-L10
from iconify.
Thanks! So I need to release new package for Svelte 4... on it.
from iconify.
Try @iconify/svelte@next
, which should install version 4.0.0-beta.2
Seems to work correctly in my tests with latest Svelte 4. I'm in process of doing more tests, but most likely will finish testing only tomorrow.
from iconify.
@PavelJacoboGonzalez you need to use bundler
module resolution, tested in your repro with @iconify/svelte@next
and VSCode and Intellij (JetBrains) working with auto complete ("@iconfy/svelte": "next"
then "yarn && yarn check"
after updating tsconfig.json
file):
from iconify.
Awesome. Working as @userquin suggested.
"module": "ESNext",
"moduleResolution": "Bundler"
Thanks so much for support.
Really appreciate
Regards
from iconify.
Related Issues (20)
- Adding TDesign Icons Collection HOT 7
- I added a new collection to Iconify but it doesn't see the collection? HOT 10
- Iconify Icons with MaterialUI IconButton HOT 9
- During packaging, assert json reports an error HOT 4
- Why not set min-width to avoid layout shift HOT 1
- How to configure getIconCss() function to be able to add icons when printing a page when pressing Ctr+P? HOT 4
- CORS issue with importing icons using @iconify/vue HOT 4
- Using static icons with Next.JS 13 HOT 7
- include uxwing.com icons HOT 2
- Sveltekit icon component change icon viewbox HOT 1
- Add option for @iconify/tailwind to disable height / width props HOT 6
- build iconify-icon in local failed HOT 7
- No exports condition for Svelte (Deprecation Warning) HOT 3
- ReferenceError: exports is not defined HOT 3
- search page can set bigger or loading more HOT 1
- Tailwindcss - Svelte - CMS HOT 3
- svelte OfflineIcon broken with 3.1.6 HOT 2
- api changes HOT 5
- width and height is not matched correctly when setting with a decimal HOT 1
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 iconify.