Snowpack generating cyclic imports with Svelte Components #3232
Unanswered
jquesada2016
asked this question in
Troubleshooting
Replies: 1 comment
-
Switching to Skypack introduced new errors, but relating to unsupported Svelte files hosted on Skypack. Therefore, I could not tell if it fixed the issue or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I woke up today to work on a larger project, and behold, I was met with a syntax error:
I wasn't sure what this meant right away, but then I decided to follow the import link, and noticed the generated file imports itself recursively.
So, for example, the Snowpack server is running on localhost:8080, and the file, according to the error message, is being served at
/_snowpack/pkg/fa-svelte.src.Icon.svelte.v3.1.0.js
. When I go tolocalhost:8080/_snowpack/pkg/fa-svelte.src.Icon.svelte.v3.1.0.js
, I am greeted with the following file contents:As you can see, the file is importing it's own
default
agaiI'm not sure what caused this, as I haven't changed anything, and checking out project commits far into the past, yielded the same result...a browser update, perhaps? I am using Microsoft Chromium Edge, but also tested on mobile Chrome on Android.
It's not just this component, it's all svelte components I have installed from npm...
Any advice? Is anyone else facing this issue. I'm going to try and switch the project to using skypack to see if the issue persists there...
Beta Was this translation helpful? Give feedback.
All reactions