Skip to content
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

export_static loads bundled JavaScript from incorrect location #243

Open
renespoerer opened this issue Aug 5, 2024 · 0 comments
Open

export_static loads bundled JavaScript from incorrect location #243

renespoerer opened this issue Aug 5, 2024 · 0 comments

Comments

@renespoerer
Copy link

I'm not sure whether this is an issue with WGLMakie or with Bonito.

After exporting routes with WGLMakie plots to a directory with export_static(folder::String, routes::Routes), the bundled WGLMakie JavaScript is loaded from bonito/js/bonito/js/wglmakie.bundled.js instead of the correct bonito/js/wglmakie.bundled.js, causing an error and failing to display the plots.

using Bonito, WGLMakie

plotApp = App() do
    plot([1],[1])
end

export_static("export", Routes("plotApp" => plotApp))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant