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

{{component "link-to"}} + staticComponents error #815

Closed
Windvis opened this issue May 18, 2021 · 1 comment · Fixed by #1029
Closed

{{component "link-to"}} + staticComponents error #815

Windvis opened this issue May 18, 2021 · 1 comment · Fixed by #1029

Comments

@Windvis
Copy link
Collaborator

Windvis commented May 18, 2021

While trying out Embroider (v0.40.0) and enabling the staticComponents compat flag, I noticed the following error:

Missing component: link-to in node_modules/@appuniversum/ember-appuniversum/components/au-link.hbs

Which points to this file: https://github.com/appuniversum/ember-appuniversum/blob/52566adf81dc1225bf2573eaa9a1aa5b2dd9b641/addon/components/au-link.hbs#L2

According to the replacing the component helper docs this should work since it's a static string. From the Discord I understood that link-to is not actually a component which is probably the reason for this error message.

I know there are workarounds to get it to work, but I just wanted to know if using link-to with the component helper like that is supposed to work under Embroider and that this should be considered a bug.

Relevant discord discussion: https://discord.com/channels/480462759797063690/568935504288940056/841617811105120276

@ef4
Copy link
Contributor

ef4 commented Jul 5, 2021

Thanks for reporting, this is a legitimate bug as long as it works in classic and doesn't work in embroider.

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

Successfully merging a pull request may close this issue.

2 participants