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
After updating to the lastest version I can no longer run npx prismic-ts-codegen.
If I try to build the types the following error appears:
➜ npx prismic-ts-codegen init
file:///Users/andrelergier/Developer/test/node_modules/meow/source/options.js:52
throw new Error(errorMessages.join('\n'));
^
Error: The option `alias` has been renamed to `shortFlag`. The following flags need to be updated: `--config`
at validateOptions (file:///Users/andrelergier/Developer/test/node_modules/meow/source/options.js:52:9)
at buildOptions (file:///Users/andrelergier/Developer/test/node_modules/meow/source/options.js:87:2)
at meow (file:///Users/andrelergier/Developer/test/node_modules/meow/source/index.js:91:24)
at file:///Users/andrelergier/Developer/test/node_modules/prismic-ts-codegen/dist/cli.js:12:13
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Node.js v18.16.0
Versions
@prismicio/client: 7.0.0
prismic-ts-codegen: 0.1.7
node: v18.16.0
Reproduction
I reproduced the issue with creating a new repository and following the steps described in the readme.
As soon as I run the following command the error already appears as well:
We don't have proper tests for the CLI yet, which unfortunately resulted in some faulty releases.
For context, yes, this is related to the updates required for @prismicio/client v7.
If you are on @prismicio/client v7 and the latest version of prismic-ts-codegen, you should be able to use types from @prismicio/client instead of @prismicio/types.
After updating to the lastest version I can no longer run
npx prismic-ts-codegen
.If I try to build the types the following error appears:
Versions
Reproduction
I reproduced the issue with creating a new repository and following the steps described in the readme.
As soon as I run the following command the error already appears as well:
Additional Details
package.json
-File:Has this anything to do with the newest version or the update to
@prismicio/client
v7?Thank you for your support.
The text was updated successfully, but these errors were encountered: