# Nextjs guide is erroneously pulling vue/nuxt packages

**URL:** <https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [March 3, 2021, 5:40pm UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360 "2021-03-03T17:40:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![webadmin](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@webadmin](https://community.prismic.io/u/webadmin)\
**Post date:** [March 3, 2021, 5:40pm UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360/1 "2021-03-03T17:40:19Z")

</div>

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:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/3/3ffdaf29dfd25475b2e543093a5c9140af137771.png)

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).

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [March 4, 2021, 1:35am UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360/2 "2021-03-04T01:35:56Z")

</div>

Hello @webadmin, welcome to the Prismic Community, and thank you for sharing your case and the updates.

Do you know what `prismic` and `node` versions are installed in your machine? this is also helpful to know when debugging Slicemachine projects, you need the latest version of the two.

Let us know if we can help you with anything else  
Thanks

---

<div class="post-metadata">

**Author:** ![webadmin](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@webadmin](https://community.prismic.io/u/webadmin)\
**Post date:** [March 4, 2021, 3:35pm UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360/4 "2021-03-04T15:35:08Z")

</div>

Hi Paulina,

I followed the guide step by step - but my machine for some reason wasn't throwing the warning for the new version of the CLI.

The docs still say to use this:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/5/5e39be9c9609688c61505f3c151c6a9be9589943.png)

I'm now using  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/e/ed6a89c983d34b0abc447e3aea5231a444bc2b3b.png)

Thank you, opening up a different ticket now for the next.config file 😅

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [March 4, 2021, 3:47pm UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360/5 "2021-03-04T15:47:33Z")

</div>

Thanks for letting me know about this, I'll make sure we update the documentation to recommend the correct CLI version!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [March 5, 2021, 3:48pm UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360/6 "2021-03-05T15:48:26Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:53pm UTC](https://community.prismic.io/t/nextjs-guide-is-erroneously-pulling-vue-nuxt-packages/4360/7 "2021-12-09T16:53:37Z")

</div>


