Files
medusa-store/packages
Sebastian Rindom 360c71e39a fix: improve error message on incorrect service export (#6240)
**What**
- Provide a more helpful error message if a user adds a file in `src/services` that doesn't export a service class.

**Why**
If you forget to `export default MyClass` in a custom service you can end up with this error:
![CleanShot 2024-01-27 at 6  24 19](https://github.com/medusajs/medusa/assets/7554214/d3700487-33e0-4629-b2c4-a2a37cb86b3e)

It's almost impossible to know how to recover from this which can be an issue for new users. The new error message informs the user that there is a missing class export and shows which file the error is related to.
2024-01-27 23:28:11 +00:00
..
2024-01-09 18:41:35 +01:00
2024-01-25 16:23:53 +01:00
2024-01-25 16:23:53 +01:00
2024-01-25 16:23:53 +01:00
2024-01-25 16:23:53 +01:00
2024-01-25 16:23:53 +01:00