Hi - I'm following along the guide for Next.js. The prismic sm --setup
command is supposed to:
- This option on the command will automatically connect our default Component Library and add any dependencies necessary to use the tool. This is done by adding extra configurations to your next.config.js file.
However nothing is being added to my next.config.js. I went to an example, that doesn't use slice machine, and pulled this in manually:
target: 'serverless', webpack(config) { config.resolve.modules.push(path.resolve('./')); return config; },
I'm not sure if that's the same thing the prismic sm --setup
should be injecting or not. Please advise.
Also, in the sm.json
file, it's generating this:
{"libraries":["@/slices","vue-essential-slices"],"apiEndpoint":"https://rtidashboard.cdn.prismic.io/api/v2"}
Notice the 'vue'. I'm using Next.js.
Also, the sm-resolver.js
file is not being generated, as the guide says it should.
UPDATE:
The issue seems to be that it's adding the VUE version instead of the nextjs version. I followed the instructions in the Next.js guide.
UPDATE 2:
Tried it on my linux machine and it worked. I was using WSL2 prior (windows machine).