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

222
Views
SiguienteJS 12 y webpack 5 propiedad desconocida 'fs'

He actualizado de Next10 a Next12 (webpack5), también de React16 a React17. Así es como se ven algunos de nuestros next.config.js :

 const config = { webpack: (config, { isServer, buildId }) => { // Fixes npm packages that depend on `fs` module config.node = { fs: 'empty', }

Cuando se ejecuta un servidor de desarrollo, aparece este error y no estoy seguro de cómo solucionarlo:

 ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - configuration[0].node has an unknown property 'fs'. These properties are valid: object { __dirname?, __filename?, global? } -> Options object for node compatibility features. - configuration[1].node has an unknown property 'fs'. These properties are valid: object { __dirname?, __filename?, global? } -> Options object for node compatibility features. at validate (C:\Users\Alvaro Lamadrid\Documents\origin\origin-dollar\dapp\node_modules\next\dist\compiled\schema-utils3\index.js:1:150822)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Asegúrese de conservar todas las configuraciones predeterminadas en su next.config.js

 config.node = { ...config.node, fs: "empty" }

about 4 years ago · Juan Pablo Isaza 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!