AUR5001
Error Message
Description
Common Scenarios
Forgetting to Return Configuration
import { HttpClient } from '@aurelia/fetch-client';
const client = new HttpClient();
// ❌ Wrong: Not returning the config
client.configure(config => {
config.withBaseUrl('https://api.example.com');
// Missing return statement - this will throw AUR5001
});Returning Wrong Value
Async Configuration Mistakes
Solutions
1. Always Return the Configuration Object
2. Use Method Chaining (No Return Needed)
3. Handling Async Configuration
4. Complex Configuration with Helper Functions
Example: Complete Configuration
Debugging Tips
Last updated
Was this helpful?