Skip to content

DevAliases cause waring/error to be shown in console #99

@ivanbacher

Description

@ivanbacher

When creating a new project using npx makes aurelia a webpack.config file is created.

It has this line in it:

alias: production ? {
  // add your production aliases here
} : {
  ...getAureliaDevAliases()
  // add your development aliases here
}

However, since beta 12. I get this warning/error in the console:

main.js:6 [DEV:aurelia] Error: AUR0153: Element {{0}} has already been registered.

I am only importing router-lite.

This solves the issue and does not seem to break anything.

alias: production ? {
  // add your production aliases here
} : {
  // ...getAureliaDevAliases()
  // add your development aliases here
}

is this getAureliaDevAliases() needed? What does it do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions