ServiceStack / Issues

Issue Tracker for the commercial versions of ServiceStack
11 stars 8 forks source link

Locode fails to load when DB generation is disabled #779

Closed rlerch closed 2 years ago

rlerch commented 2 years ago

Describe the issue

After creating an autoquery api locode does not work. The page doesn't load unless database first generation is enabled. Navigation to /locode gives the javascript error. I want to generate a locode app from my existing autoquery api.

    at locode:1903:3

Uncaught ReferenceError: store is not defined
    at locode:4614:5```

I feel like I am missing some registration setting somewhere that is not listed in the documentation. There are no example Code-First application as the repo listed on the documetation page is an empty application.

### Reproduction

Navigate to locode page in an auto query application

### Expected behavior

See the locode 

### System Info

```shell
windows 10, Service Stack 6.1.0, .net 6

Additional context

No response

Validations

rlerch commented 2 years ago

The endpoints are not detected unless a query endpoint is defined. Locode shouldn't crash in this case, it should still show a create button.

mythz commented 2 years ago

Can you please provide the exact steps to repro the issue or a link to a project with the issue.