ricou
(Eric)
July 16, 2023, 12:24pm
1
Hi,
The installation of Prismic doesn't work on Nuxt3 when nuxt.config.js contains async module :
Ex:
modules: [
"@kevinmarrec /nuxt-pwa",
async (options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) =>
// @ts-ignore
config.plugins.push(vuetify())
);
},
],
You can reproduce by cloning this repo :
GitHub - BayBreezy/nuxt3-vuetify3-starter: Template to get you up and running with Nuxt 3 & Vuetify 3 and execute :
npm install
npx @slicemachine /init@latest
If you comment the async module, it works again.
Eric;
Priyanka
(Priyanka Maheshwari)
July 18, 2023, 10:20am
3
Hello @ricou
Thanks for reaching out to us.
Have you created a nuxt.js project from scratch and run this command npx @slicemachine/init@latest
? Or do you run the command npx @slicemachine/init@latest
in the already created project? Can you share the steps?
Thanks,
Priyanka
ricou
(Eric)
July 18, 2023, 12:05pm
4
I ran this command "npx @slicemachine /init@latest" in the already project.
Priyanka
(Priyanka Maheshwari)
July 19, 2023, 8:43am
5
Hello @ricou
Can you paste the complete nuxt.config.js
file?
Thanks,
Priyanka
Priyanka
(Priyanka Maheshwari)
July 21, 2023, 10:49am
7
Thanks @ricou . I'll let my dedicated to know about the dependency.