Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to create a custom refine in nextjs !sao.opts.extras.projectType.includes("refine") #368

Closed
kalib-code opened this issue Oct 20, 2023 · 2 comments

Comments

@kalib-code
Copy link

Trying to create a custom refine in nextjs i just copy the template nextjs on a separate repo then do some customization on plugins and wanting to use superplate for cli but having this issue

/Users/karlkennethalibuas/Project/node_modules/superplate-cli/lib/saofile.js:160
skip: () => !sao.opts.extras.projectType.includes("refine")
^

TypeError: Cannot read properties of undefined (reading 'includes')
at Input.skip (/Users/karlkennethalibuas/Project/node_modules/superplate-cli/lib/saofile.js:160:48)
at Input.skip (/Users/karlkennethalibuas/Project/node_modules/enquirer/lib/prompt.js:196:46)
at /Users/karlkennethalibuas/Project/node_modules/enquirer/lib/prompt.js:241:22
at new Promise ()
at Input.run (/Users/karlkennethalibuas/Project/node_modules/enquirer/lib/prompt.js:237:12)
at Enquirer.ask (/Users/karlkennethalibuas/Project/node_modules/enquirer/index.js:141:43)
at Enquirer.prompt (/Users/karlkennethalibuas/Project/node_modules/enquirer/index.js:85:20)
at fn (/Users/karlkennethalibuas/Project/node_modules/enquirer/index.js:222:23)
at SAO.actions (/Users/karlkennethalibuas/Project/node_modules/superplate-cli/lib/saofile.js:155:58)
at runActions (/Users/karlkennethalibuas/Project/node_modules/sao/dist/run-actions.js:953:79)

@omeraplak
Copy link
Contributor

omeraplak commented Oct 20, 2023

Hey @kalib-code ,
I've released v1.17.8. Could you please update the latest version and test it?

Thanks

@kalib-code
Copy link
Author

thanks confirming its workings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants