SpoonX / aurelia-authentication

Authentication plugin for aurelia.
http://aurelia-authentication.spoonx.org
MIT License
90 stars 60 forks source link

Unable to find module with ID: aurelia-authentication/authFilterValueConverter #409

Closed arjasepp closed 3 years ago

arjasepp commented 5 years ago

Somehow I get this error. Anyone has an idea how to fix it or what should I do?

RWOverdijk commented 5 years ago

This sounds like an issue covered in the docs. I can't look it up right now, but take a look there

brettveenstra commented 4 years ago

@arjasepp : you using webpack? if so, try this

    new ModuleDependenciesPlugin({
        "aurelia-authentication": ["./authFilterValueConverter"]
    }),

then inside your startup/boot like this

export function configure(aurelia: Aurelia) {
  aurelia.use.standardConfiguration()
    .globalResources(PLATFORM.moduleName("aurelia-authentication/authFilterValueConverter"))
    ...
    .plugin(PLATFORM.moduleName("aurelia-authentication"), baseConfig => {
      baseConfig.configure(authConfig);
    })

  aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName("app")));