Skip to content

Cannot use: error - Cannot read properties of undefined (reading 'memo') #821

@SimoneMSR

Description

@SimoneMSR

Checklist before opening an issue
Lots of issues are opened that are unrelated to this lib, please take a moment to ensure the issue is not on your end 🙏.

  • [x ] Did you try google/chatgpt?
  • [x ] Did you search for previous Issues in this repo?

Describe the bug
I cannot run the app but get this error
Cannot read properties of undefined (reading 'memo')

Image Gallery Version
1.4.0

To Reproduce
Steps to reproduce the behavior:

  1. Build a simple app, following instructions on this repository

Expected behavior
I expect to see the gallery

Client info (please complete the following information):\

  • OS: Win 10
  • Browser: chrome
  • React version: 19.1.0
  • Bundler: Parcel 2.15.2

Here the full error

TypeError: Cannot read properties of undefined (reading 'memo')
9Ohqe.react
node_modules/react-image-gallery/build/image-gallery.es.js:1:18655
> 1 | ault.memo((function(e){var t=ge(ge({},ye),e),n=t.description,i=t.fullscree
>   |      ^
View compiled
newRequire
dist/dighedo.2ef0291c.js:84:24
  81 | 
  82 |       var module = (cache[name] = new newRequire.Module(name));
  83 | 
> 84 |       modules[name][0].call(
>    |                        ^
  85 |         module.exports,
  86 |         localRequire,
  87 |         module,
localRequire
dist/dighedo.2ef0291c.js:97:35
   94 | 
   95 |     function localRequire(x) {
   96 |       var res = localRequire.resolve(x);
>  97 |       return res === false ? {} : newRequire(res);
>     |                                   ^
   98 |     }
   99 | 
  100 |     function resolve(x) {
lzhIH.react/jsx-dev-runtime
index.tsx:6
  3 | import "./assets/images.scss"
  4 | import { Suspense, lazy, useEffect, useState } from "react";
  5 | import { Routes, Route, Link, Navigate } from "react-router";
> 6 | import ImageGallery from "react-image-gallery";
>   | ^
  7 | import "react-image-gallery/styles/css/image-gallery.css"
  8 | 
  9 | const Home = lazy(() => import('./components/pages/home'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions