Hello. I'm following this article in order to start my first CMS site. There's me worrying about asyncData
and I can't even start Slice Machine
Having created my first slice, I can get as far as this next command which does execute successfully
prismic sm --add-storybook
But it's the next one
prismic sm --develop
My terminal greets me with
[slices API]: Unauthorized
My Prismic login doesn't work here, I did see a couple of threads on this. One suggested logout and login, done that no success. One had trouble with Node but after updating that to the latest still no change. The other said to check the sm.json
, my apiEndpoint
seems O.K:
{
"libraries": [
"@/slices",
"vue-essential-slices"
],
"apiEndpoint": "https://api.slicemachine.dev/2020-10-27",
"storybook": "http://localhost:3003"
}
Could the fact that I am setting this up on an external hard drive be a key factor? That's the only thing I'm doing that's not normal I guess. Everything else seemed to install, however. Everything in the step-by-step article for Nuxt and Prismic.
Package.json if it's any use:
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"storybook": "nuxt storybook",
"build-storybook": "nuxt storybook build"
},
"dependencies": {
"@nuxtjs/prismic": "^1.2.6",
"@prismicio/vue": "^2.0.11",
"core-js": "^3.9.1",
"nuxt": "^2.15.3",
"nuxt-sm": "0.0.6",
"prismic-javascript": "^3.0.2",
"vue-essential-slices": "^0.3.0",
"vue-slicezone": "0.0.30"
},
"devDependencies": {
"@nuxtjs/storybook": "^3.3.1",
"babel-loader": "^8.2.2"
}
Appreciate any help and support.
Repo here.