-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
REQUEST: downgrade 'No Aurelia APIs are defined for the element: "xxx".' from thrown error to warning message #676
Comments
Can't you just add a try-catch around your own code calling |
@Anthony-Mckale Please provide an minimal example code when it fails for you. |
this gist is configured with the latest version of aurelia: |
The error comes from
Would be nice if @Anthony-Mckale or some community member could help with this 😃 |
@Anthony-Mckale I use ref with enhance and it works if you register your components with .globalResources() |
@magnusdanielson yeah i ended up doing that for the webpack port, i'm now on a new contract doing react work, looking forward to see how aurelia next goes though |
I'm submitting a feature request
currently aurelia enhance is falling over when it gets elements with element/controller/view-model/view which are not defined
and it breaks the bootstraping of aurelia
caused by this code
is there any chance this could be sent as a warning or try/catched into a warning
currently monkey patched with this in dev which not ideal, to stopping html inserted ahead of js components being deployed breaking builds
ALL
Please tell us about your environment:
Operating System:
NA
Node Version:
NA
JSPM OR Webpack AND Version
NA
Browser:
NA
Language:
NA
Current behavior:
Expected/desired behavior:
What is the expected behavior?
Aurelia should be robust and not fall over / aka cascade exception, when finding dom without Aurelia API
What is the motivation / use case for changing the behavior?
Aurelia should be tough and handle not ideal html gracefully (but still call out error and the situations)
The text was updated successfully, but these errors were encountered: