cloudflare / cloudflare/d1-northwind

Issue with loading the demo

Open
#22 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
159
Forks
45
PR merge metrics
No merged PRs in 30d

Description

It seems that there is an error the in the deployment of the worker. When I try to open the [demo](https://northwind.d1sql.com/suppliers) I get this error:

![CleanShot 2023-08-26 at 18 49 28@2x](https://github.com/cloudflare/d1-northwind/assets/1054228/fae05e4e-4e8f-4e7d-8e05-7351eec9d732)

A few notes:
- The demo works fine locally
- Current implementation can be improved by checking whether the server response exists or not, before checking its length (see below). However, that won't fix the core issue.
```diff
const Suppliers = () => {
// some component logic
return (
<>
- {suppliers.length ? (
+ {suppliers?.length ? (


```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.