cloudflare / cloudflare/pages-plugins

Local pages graphql plugin dev fails with framework

Open
#32 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
62
Forks
21
PR merge metrics
No merged PRs in 30d

Description

When doing local development using a framework (e.g. `wrangler pages dev -- next dev`), the GraphQL plugin fails to compile with the below error:

```
../node_modules/@cloudflare/pages-plugin-graphql/index.js:2:26: ERROR: Do not know how to load
path:
assets:/myproject/node_modules/@cloudflare/pages-plugin-graphql/static
```

This line seeming to be the problem: `import { onRequest } from "assets:./static";`

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.