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

Components generated after server start are not being resolved #542

Closed
astronomersiva opened this issue Apr 16, 2018 · 3 comments
Closed

Comments

@astronomersiva
Copy link
Contributor

If a component is generated after server startup, it is not being resolved resulting in failed assertions.

Reproduction link - This is basically a "Hello, World!" app. Run ember server and then do ember g component after-server-start -ir my-engine.

Navigating to http://localhost:4200/my-engine/hello will now throw:

Assertion Failed: A component or helper named "after-server-start" could not be found.

The assertion goes away if you restart the server.

If one does not know that this issue can be solved by a simple server restart, it becomes extremely confusing as to why the error is being thrown in the first place. It is also very inconvenient when working on slightly big applications as you are forced to wait for 20-30 seconds for the server to start each time a new component is generated.

Would love to help you fix this if you help me with where to look :)

@catz
Copy link

catz commented Apr 23, 2018

+1 I'm getting similar errors very often.

@catz
Copy link

catz commented Oct 17, 2018

similar to #577

@bertdeblock
Copy link
Contributor

bertdeblock commented Mar 11, 2021

Couldn't reproduce this in a brand new engine (starting from the engines blueprint), so I think this is resolved and we can close this ticket.

@rwjblue rwjblue closed this as completed Mar 16, 2021
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

4 participants