gilbarbara / react-joyride

Create guided tours in your apps
https://react-joyride.com/
MIT License
6.62k stars 519 forks source link

isRequiredIf is not a function from "react-floater" #974

Closed ramadhanabs closed 7 months ago

ramadhanabs commented 7 months ago

Hello, when i try to build my app on docker image, it shows error message like this

`> Build error occurred

12 97.12 TypeError: isRequiredIf is not a function

12 97.12 at Object. (/usr/app/node_modules/react-floater/lib/index.js:211:7832)

12 97.12 at Module._compile (internal/modules/cjs/loader.js:1063:30)

12 97.12 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

12 97.12 at Module.load (internal/modules/cjs/loader.js:928:32)

12 97.12 at Function.Module._load (internal/modules/cjs/loader.js:769:14)

12 97.12 at Function.wrappedLoad [as _load] (/usr/app/node_modules/newrelic/lib/shimmer.js:313:24)

12 97.12 at ModuleWrap. (internal/modules/esm/translators.js:199:29)

12 97.12 at ModuleJob.run (internal/modules/esm/module_job.js:152:23)

12 97.12 at async Loader.import (internal/modules/esm/loader.js:166:24) {

12 97.12 type: 'TypeError'

12 97.12 }`

Seems like it comes from 'react-floater' dependencies, any help?

I use "react": "^18.0.0"

juniorforlife commented 7 months ago

I'm having the same issue. It was fine a couple days ago.

shubham-chavda commented 7 months ago

Facing same issue.

ucheol2 commented 7 months ago

Same issue

juniorforlife commented 7 months ago

@gilbarbara please take a look since this is a critical issue

philippenunes commented 7 months ago

Same issue

gilbarbara commented 7 months ago

I'll fix it today

juniorforlife commented 7 months ago

I think the issue is react-joyride depends on react-floater which depends on popperjs but they did some breaking changes so it messed up joyride. I forked your joyride repo to update floater version to 0.9.2 instead of 0.7.6 and was able to build successfully. However my Joyride component now stops working

gilbarbara commented 7 months ago

Fixed in 2.7.1