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

πŸ› Bug Report β€” The wrangler dev session for service "YYY" does not export an entrypoint named "XXX" #7413

Open
gregory opened this issue Nov 10, 2024 · 1 comment

Comments

@gregory
Copy link

gregory commented Nov 10, 2024

I'm having a new issue locally:
The wrangler dev session for service "YYY" does not export an entrypoint named "XXX" - i'm on 3.86.0 and tried to rollback to 3.84.1, but issue persists.

Iit's properly exposed through the bindings and worked before.
It can no longer see it in the list at http://localhost:6284/workers

I narrowed down the issue, it appear the services aren't loaded when exported from another file.
image

➜  bug git:(main) βœ— curl http://localhost:6284/workers |jq  
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   277  100   277    0     0   147k      0 --:--:-- --:--:-- --:--:--  270k
{
  "bug-service-staging": {
    "protocol": "http",
    "mode": "local",
    "port": 8792,
    "host": "127.0.0.1",
    "durableObjects": [],
    "durableObjectsHost": "127.0.0.1",
    "durableObjectsPort": 8792,
    "entrypointAddresses": {
      "Foo": {
        "host": "127.0.0.1",
        "port": 57840
      },
      "default": {
        "host": "127.0.0.1",
        "port": 57841
      }
    }
  }
}

@gregory
Copy link
Author

gregory commented Nov 11, 2024

The problem is fixed when I explicitly export the services, like: export {ServiceA} from './services' instead of export * from ./services
I'm not sure how and what broke it but it worked before.

@penalosa penalosa transferred this issue from cloudflare/workerd Dec 2, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant