prismic-cli icon indicating copy to clipboard operation
prismic-cli copied to clipboard

`prismic sm --setup` throw error for missing `nuxt.config.js` even though `nuxt.config.ts` exists.

Open eveningforgery opened this issue 4 years ago • 2 comments

nuxt-bridge now supports and recommends typescript for their config file but prismic cli doesn't detect it.

prismic sm --existing-repo --setup
? Name your prismic repository:  https://repo-name.prismic.io
? Which framework to use nuxt
    Error: /Users/usr/Documents/Github/project/nuxt.config.js doesn't exist

eveningforgery avatar Oct 13 '21 12:10 eveningforgery

Hey @eveningforgery, thanks for bringing that to our attention!

We expect things to break with the new Nuxt bridge, but if that's only that we should be able to handle it 👌

@MarcMcIntosh can you handle that?

lihbr avatar Oct 21 '21 08:10 lihbr

@eveningforgery @lihbr I'll see about getting this added to my todo list :) Hopefully it's just a case of searching for extra file and running the same function to modify the config. Do we have a demo project to test this on?

MarcMcIntosh avatar Oct 21 '21 09:10 MarcMcIntosh