Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
ValidationError: objeto de opciones no válido. CSS Loader se ha inicializado utilizando un objeto de opciones que no coincide con el esquema de la API

Sumario

Creé el proyecto Nuxt.js mediante yarn create nuxt-app con modo SPA.
Sin embargo, después de instalar Storybook, yarn dev muestra un error y no puede iniciar la página de demostración.

 ERROR Failed to compile with 1 errors friendly-errors 17:38:56 ERROR in ./layouts/error.vue?vue&type=style&index=0&id=d5ea9138&scoped=true&lang=css& friendly-errors 17:38:56 Module build failed (from ./node_modules/css-loader/dist/cjs.js): friendly-errors 17:38:56 ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options.modules has an unknown property 'compileType'. These properties are valid: object { auto?, mode?, exportGlobals?, localIdentName?, localIdentRegExp?, context?, hashPrefix?, getLocalIdent? } at validate (/home/jpskgc/ghq/github.com/jpskgc/vue-nuxt-vuetify-sass-storybook/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:98:11) at Object.loader (/home/jpskgc/ghq/github.com/jpskgc/vue-nuxt-vuetify-sass-storybook/node_modules/css-loader/dist/index.js:36:28) friendly-errors 17:38:56 @ ./node_modules/vue-style-loader??ref--3-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/@nuxt/webpack/node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??ref--3-oneOf-1-2!./node_modules/@nuxt/webpack/node_modules/vue-loader/lib??vue-loader-options!./layouts/error.vue?vue&type=style&index=0&id=d5ea9138&scoped=true&lang=css& 4:14-385 15:3-20:5 16:22-393 @ ./layouts/error.vue?vue&type=style&index=0&id=d5ea9138&scoped=true&lang=css& @ ./layouts/error.vue @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js

Quiero saber cómo resolver este error y ejecutar correctamente el comando yarn dev .

algún código

Aquí está el repositorio. Por favor, compruebe.
https://github.com/jpskgc/vue-nuxt-vuetify-sass-storybook

Medioambiente

Ubuntu20.04

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Resolví este problema agregando las siguientes dependencias de desarrollo.

 yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!