-
Notifications
You must be signed in to change notification settings - Fork 2
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
Interactive components not working since Astro updated to 2.0 #1
Comments
for anyone running into this issue, I think i found the root cause, but I'm not sure the correct fix. The dev middleware used to handle requests to elm files is interpreting elm files at the root of your file system, instead of relative to your current working directory. adding
Note the the following code fixes their example at least by adding a
clearly something changed with astro or vite in the way that paths are handled when astro was upgraded to v2. This is at least a workaround or starting point if anyone else wants to continue to investigate possibly related to this vite issue |
Astro is on v4 now, so it's probably even more broke? |
The hello world doesn't seem to work in v4 either. |
@angusjf can you re-open this issue since it's not published to npm? |
Hi, thanks for making this library. I think it will be very useful.
I'm finding that the more complex interactive uses of elm (where state is updated) are not working. I think this might be due to the updating of Astro to 2.0. The simple Hello World example works fine. With the interactive ones, the Elm code seems to compile fine, but then an error is thrown claiming not to be able to find the component. I have produced as minimal example here:
Minimal example
I have simplified it to just use
Browser.sandbox
to make things simpler. The error was the same if usingBrowser.application
If there is more info I could provide or any other way I might be able to help then please let me know.
The text was updated successfully, but these errors were encountered: