To get the nuxt-edgedb module CLI setup wizard to run with npx nuxt-edgedb-module or pnpm exec nuxt-edgedb-module I had to manually install the EdgeDB Generators package @edgedb/generate to dev dependencies with:
pnpm add -D @edgedb/generate.
Using:
nuxt-edgedb-module 0.0.52
EdgeDB 5.6
Nuxt 3.12.4
In case others have a similar issue perhaps the README.md should be updated.
Here is what is required for me to to get pnpm exec nuxt-edgedb-module to work from a clean project.
Create a new Nuxt project pnpm dlx nuxi@latest init new_project_name
To get the
nuxt-edgedb
module CLI setup wizard to run withnpx nuxt-edgedb-module
orpnpm exec nuxt-edgedb-module
I had to manually install the EdgeDB Generators package @edgedb/generate to dev dependencies with:pnpm add -D @edgedb/generate
.Using:
In case others have a similar issue perhaps the README.md should be updated.
Here is what is required for me to to get
pnpm exec nuxt-edgedb-module
to work from a clean project.pnpm dlx nuxi@latest init new_project_name
cd new_poject_name
pnpm add --save-prod edgedb
pnpm add --save-dev @edgedb/generate
Otherwisepnpm exec nuxt-edgedb-module
will fail.npx nuxi@latest module add edgedb
dbschema/default.esdl
and API endpoint e.g.server/api/movies/[id].ts
after seeding some data.edgedb migration create
edgedb migrate
dbschema/queries/movie.ts
pnpm exec nuxt-edgedb-module
npm run dev
and the api should be available at the API endpoint