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

Conflict b/w module parameter name and file name #1776

Open
Arpita-Jaiswal opened this issue Feb 18, 2024 · 0 comments
Open

Conflict b/w module parameter name and file name #1776

Arpita-Jaiswal opened this issue Feb 18, 2024 · 0 comments

Comments

@Arpita-Jaiswal
Copy link
Contributor

Arpita-Jaiswal commented Feb 18, 2024

Consider a file pages/create-site.ftd

-- import: <package-name>/actions/create-site

-- component page:
module create-site: create-site

...
-- ftd.text: $page.create-site.site-error
...

-- end: page

This throw error saying <package-name>/pages/create-site/#site-error not found. So fastn is trying to fetch the site-error variable from pages/create-site.ftd instead of actions/create-site.ftd.

Workaround is to change the name of one of the document. Like if actions/create-site.ftd is renamed to actions/create-site-action.ftd it worked.

Now pages/create-site.ftd changed to

-- import: <package-name>/actions/create-site-action

-- component page:
module create-site: create-site-action

...
-- ftd.text: $page.create-site.site-error
...

-- end: page

Checkout FifthTry/ui@7df7494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant