Open ivanbacher opened 7 months ago
Thanks @ivanbacher , since beta 12, there will be warning when theres a duplicate registration. Thats what the line is about. Though i missed the name of the element being registered so it appears as {{0}}. There will be a dev version with this fixed.
And for your main question: the get dev aliases is very useful during development as it gives clear description of what some errors are, in contrast to production mode where you only see the error code. A bit more info can be found at https://docs.aurelia.io/developer-guides/error-messages
Super. Thanks for the info.
So that means I can just ignore the Element has already been registered
warning during development?
@bigopon is this fixed?
The main issues have been fixed, only hmr related one is not. Its because we register again when we hot reload a module. With the ability to deregister, this should be fixable.
When creating a new project using
npx makes aurelia
awebpack.config
file is created.It has this line in it:
However, since beta 12. I get this warning/error in the console:
I am only importing
router-lite
.This solves the issue and does not seem to break anything.
is this
getAureliaDevAliases()
needed? What does it do?