https://github.com/ged/au2-router-context-repro
A minimal reproduction of a router context problem in Au2
https://github.com/ged/au2-router-context-repro
Last synced: about 1 year ago
JSON representation
A minimal reproduction of a router context problem in Au2
- Host: GitHub
- URL: https://github.com/ged/au2-router-context-repro
- Owner: ged
- Created: 2024-04-17T16:11:07.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T21:02:32.000Z (about 2 years ago)
- Last Synced: 2025-02-10T20:56:49.418Z (over 1 year ago)
- Language: JavaScript
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# router-context-repro
This is a minimal repo case for a problem using the RouterContext to build navigation in ESNext Aurelia 2 apps with the `router-lite` router.
The code question is in `src/nav-bar.js`. When this runs, it fails to render the generated van bar, and in the console I get:
```
Error: AUR0009: Attempted to jitRegister something that is not a constructor: 'au:resource:value-converter:firstNonEmpty'. Did you forget to register this resource?
at createMappedError (index.dev.mjs:85:49)
at Container._jitRegister (index.dev.mjs:1175:19)
at Container.get (index.dev.mjs:1013:41)
at eval (index.dev.mjs:1900:22)
at Resolver.resolve (index.dev.mjs:1774:20)
at Container.get (index.dev.mjs:1001:24)
at Object.get (index.dev.mjs:2103:34)
at PropertyBinding.evaluatorGetConverter (index.dev.mjs:2214:52)
at astBind (index.dev.mjs:1025:44)
at PropertyBinding.bind (index.dev.mjs:2935:9)
```
I added some other stuff I tried, commented out.