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

201
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo 'toque')

Estaba tratando de instalar la biblioteca react-multi-carousel cuando ocurrió este error:

./node_modules/react-multi-carousel/lib/styles.css
TypeError: Cannot read properties of undefined (reading 'tap')

Creo que esto está sucediendo porque el proyecto usa nextjs (que solo conocen los conceptos básicos extremos). Este es mi archivo next.config :

 const webpack = require('webpack') const withPlugins = require('next-compose-plugins') const optimizedImages = require('next-optimized-images') const withCSS = require('@zeit/next-css') const path = require('path') const withReactStorefront = require('react-storefront/plugins/withReactStorefront') require('dotenv').config() module.exports = withReactStorefront({ target: 'serverless', connector: 'connector', webpack: config => { config.plugins.push( new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1, }) ) return config }, }) const nextConfig = { webpack: (config, { dev }) => { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], }) config.plugins.push(new webpack.EnvironmentPlugin(process.env)) config.resolve.alias['components'] = path.join(__dirname, 'components') config.resolve.alias['static'] = path.join(__dirname, 'static') return config }, } module.exports = withPlugins( [ [ optimizedImages, { handleImages: ['jpeg', 'png'], }, ], withCSS, ], nextConfig )

Además, estoy tratando de importar estos estilos en un componente de la página siguiente llamado restaurants.js . Intenté importar dentro _app.js y tampoco funcionó.

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!