nuxt-modules / style-resources

Style Resources for Nuxt 3
MIT License
588 stars 22 forks source link

Unable to make it works #232

Open onemore-creator opened 5 months ago

onemore-creator commented 5 months ago

Everything is quite straightforward: I am creating a new blank nuxt3 project using npx nuxi@latest init, trying to add nuxt-styled-resources and get this error:

ERROR  Cannot restart nuxt:  Cannot read properties of undefined (reading 'nuxt') 
at nuxtStyledResources (node_modules/@nuxtjs/style-resources/lib/module.js:7:25) 
at installModule (node_modules/@nuxt/kit/dist/index.mjs:2415:101) 
at async initNuxt (node_modules/nuxt/dist/index.mjs:4233:7)
at async NuxtDevServer._load (node_modules/nuxi/dist/chunks/dev2.mjs:6879:5)
at async NuxtDevServer.load (node_modules/nuxi/dist/chunks/dev2.mjs:6811:7)
at async _applyPromised (node_modules/nuxi/dist/chunks/dev2.mjs:3805:10)
antiden commented 5 months ago

@onemore-creator Use "@nuxtjs/style-resources": "^2",