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

185
Views
No se pueden leer las propiedades de undefined (leyendo 'coincidencia') en getLocalIdent

Estoy tratando de hacer un script de compilación. entonces puedo construir con webpack algo así como build.server.js

 process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; process.on('unhandledRejection', err => { throw err; }); require('../config/env'); const fs = require('fs-extra'); const webpack = require('webpack'); const config = require('../config/webpack.config.server'); const paths = require('../config/paths'); function build() { console.log('Creating server build'); fs.emptyDirSync(paths.ssrBuild); let compiler = webpack(config); return new Promise((resolve, reject) => { compiler.run((err, status) => { if (err) { console.log(err); return; } console.log(status.toString()); }); }); } build();

después de codificar esto y escribir node scripts/build.server.js , aparece este error.

 Cannot read properties of undefined (reading 'match') at getLocalIdent (C:\Users\jhs00\OneDrive\바탕 화면\공부자료\ssrProject\ssrproject\node_modules\react-dev-utils\getCSSModuleLocalIdent.js:20:49)

getLoslIdent está aquí (webpack.config.server.js)

 const nodeExternals = require('webpack-node-externals') const webpack = require('webpack'); const paths = require('./paths'); const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent'); ...

Busqué una pregunta similar e intenté eliminar package-lock.json , node_modules y reinstalarlo. pero no funcionó. ¿Qué tengo que hacer?

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