Warnings when using auto importer
See original GitHub issueHopefully this is the right place.
I’m having some issues getting the auto importer to work correctly and/or without warnings on sveltekit.
I’ve made an example repository here: https://github.com/RickMeijer/sveltekit_auto-import
When visitingwhich makes sense, since I used the wrong syntax. Fixed now.localhost:3000
you’ll see an error about a module not being found- When visiting
localhost:3000/foo
you’ll see the same icon. A warning appears in the console (and during build), which might be or not be related to the problem. Preferably I won’t have a warning at all.
What am I overlooking? I think I’ve pieced the installation instructions together properly, so I’m not sure what’s going on.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
Importation and Certification FAQs - NHTSA
The number alerts Customs to the fact that the vehicle can be lawfully imported (by an RI or by a person who has...
Read more >Purpose of --enable-auto-import Warning - Stack Overflow
I expect a successful build to be completely silent. This message gives the false impression that there's something wrong with my code. I...
Read more >Importing a Motor Vehicle | U.S. Customs and Border Protection
Warning Imported motor vehicles are subject to safety standards under the Motor Vehicle Safety Act of 1966, revised under the Imported ...
Read more >Warnings : Illegally Imported Cars : State Titled Cars
Allows any individual (not just registered importers) to import non-conforming foreign motor vehicles if such import is for personal use and not ...
Read more >Import Alerts - FDA
What is the purpose of an import alert? · Prevent potentially violative products from being distributed in the United States; · Free-up agency ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SarcevicAntonio @ogrotten you can use
preset-icons
fromunocss
, you don’t need more sfc for your icons, the icons will go to your css@RickMeijer it shouldn’t work, but it works, the problem is the svelte/sveltekit internals: we have 2 plugin,
unplugin-icons
andvite-plugin-svelte
, both withpre
, then we have a few other vite internal plugins and finally theunplugin-auto-import
plugin withpost
.The warning comes from
vite-plugin-svelte
because theunplugin-auto-import
is applied after it (the transformation) and sovite-plugin-svelte
don’t see the import thatunplugin-auto-import
will add later.I have added
esm
support tovite-unplugin-inspect
(only on my local, the PR is ready to review on the repo), you can see the result here (you can see on the video the plugins and the order applied): https://imgur.com/dz2iLGbI’m talking with
svelte
experts to figure out how we can remove the warning, but it would be hard or not possible.