New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Named import bug #258
Labels
bug
Something isn't working
Comments
This seems to be caused when there are too many imports in a row that require going back up directories, for example: import Something from '../../path/to/something.svelte';
import SomethingElse from '../../../something_else.svelte'; The regex grabs more than the import so a weird hack that you can use as a temporary fix is putting a comment like this at the bottom of your template: <!-- /"; Fixed --> Trying to resolve these imports manually using regex might be a losing battle. Future plan includes looking into ESBuild to do this for us. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There seems to be a bug when doing certain types of imports:
Error: runtime error: index out of range [-1]
Full error
@hlanderdev and I are still trying to pinpoint exactly what is causing this. One theory is that if you use the same named import (stores seem ok still) in both a child and parent component, you hit this error.
Notes:
plenti/cmd/build/compile.go
Line 159 in 9195a50
reStaticImport.FindAllString(ssrStr, -1)
might be capturing too muchThe text was updated successfully, but these errors were encountered: