You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{EdgeQL,Context}from'npm:edgeql';constapp=newEdgeQL()app.handle(`type Query { hello: String}`,(ctx: Context)=>{return'hello from EdgeQL on Deno'})Deno.serve((req: Request)=>{returnapp.fetch(req)})
but getting following errors
error: 'import', and 'export' cannot be used outside of module code at file:///Users/minhuang/Codes/EdgeQL/examples/deno/node_modules/.deno/edgeql@0.1.3/node_modules/edgeql/dist/esm/index.js:1:1
export { EdgeQL } from './app';
~~~~~~
```
The text was updated successfully, but these errors were encountered:
After add type to package.json of Edge, now the error is different, but still related to module resolution.
error: Could not resolve './app' from 'file:///.../node_modules/.deno/edgeql@0.1.4/node_modules/edgeql/dist/esm/index.js'.
Caused by:
[ERR_MODULE_NOT_FOUND] Cannot find module "file:///..../node_modules/.deno/edgeql@0.1.4/node_modules/edgeql/dist/esm/app" imported from "file:///..../node_modules/.deno/edgeql@0.1.4/node_modules/edgeql/dist/esm/index.js"
I am trying following test,
but getting following errors
The text was updated successfully, but these errors were encountered: