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

252
Views
TypeError: no se puede leer la propiedad 'toque' de indefinido al agregar webpack-subresource-integrity

Estoy tratando de configurar el paquete webpack-subresource-integrity en mi config-overrides.js ( react-app-rewired ):

 const { SubresourceIntegrityPlugin } = require('webpack-subresource-integrity'); module.exports = function override(config, env) { config.optimization.splitChunks.cacheGroups = { ...config.optimization.splitChunks.cacheGroups, project: { test: /[\\/]node_modules[\\/]@project[\\/]/ } }; // added this part config.output = { crossOriginLoading: 'anonymous' }; config.plugins = [...config.plugins, new SubresourceIntegrityPlugin()]; return config; };

Obtengo TypeError: Cannot read property 'tap' of undefined

Ya intenté eliminar mis node_modules, yarn.lock y luego reinstalar los paquetes, pero sigo teniendo el mismo error.

Este es el error completo:

 /Users/me/myProject/node_modules/react-scripts/scripts/start.js:19 throw err; ^ TypeError: Cannot read property 'tap' of undefined at /Users/me/myProject/node_modules/webpack-subresource-integrity/index.js:235:48 at SyncHook.eval [as call] (eval at create (/Users/me/myProject/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:89:1) at SyncHook.lazyCompileHook (/Users/me/myProject/node_modules/tapable/lib/Hook.js:154:20) at Compiler.newCompilation (/Users/me/myProject/node_modules/webpack/lib/Compiler.js:631:26) at /Users/me/myProject/node_modules/webpack/lib/Compiler.js:667:29 at _next0 (eval at create (/Users/me/myProject/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1) at eval (eval at create (/Users/me/myProject/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:26:1) at processTicksAndRejections (internal/process/task_queues.js:95:5) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tengo una solución para que funcione bien, siga el siguiente paso:

  1. elimine la carpeta node_modules del directorio del proyecto
  2. elimine el archivo package-lock.json
  3. asegúrese de borrar el caché use este comando npm cache clean --force
  4. luego verifique los bytes de memoria usando este comando npm cache verificar
  5. y luego vuelva a usar npm install
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!