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

importing the named apps from a module breaks rendering #284

Open
hhaensel opened this issue Jun 24, 2024 · 0 comments
Open

importing the named apps from a module breaks rendering #284

hhaensel opened this issue Jun 24, 2024 · 0 comments

Comments

@hhaensel
Copy link
Member

module MyAppModule

@app MyApp begin
end

ui() = "Hello World"
@page("/", ui, app = MyApp)

end

up()
# at this point the app loads correctly
import .MyAppModule.MyApp
# at this point the app doesn't load anymore

The reason is that after importing the mount point's name is no longer prefixed by the module name, so the following error is displayed in the browser's console

Failed to mount app: mount target selector "#Main_MyAppModule_MyApp" returned null.

Instead, the name MyApp references the correct div.

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