Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyphens ("-") in the service name break the Flow Architecture Diagram in the Development Dashboard #1704

Open
santerijps opened this issue Jan 13, 2025 · 0 comments

Comments

@santerijps
Copy link

When declaring a new service, and the service name includes a hyphen, the flow architecture diagram will not display dependencies to it.
In the code block below, both service names produce the same "import" name, when the service is used locally.

// File: encore.service.ts
export default new Service("hello-world"); // does not work
export default new Service("hello_world"); // works

// In some other service
import { hello_world } from "~encore/clients";
await hello_world.hello(...);

The hyphen is replaced by an underscore in order to have a valid import name. Maybe the flow diagram is confused about the actual name of the service?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant