aboveyunhai / chakra-dayzed-datepicker

Chakra UI + Dayzed = datepicker
https://aboveyunhai.github.io/chakra-dayzed-datepicker/
MIT License
223 stars 46 forks source link

bug - ArrowKeysReact.config isn't define #21

Closed wellDan28 closed 2 years ago

wellDan28 commented 2 years ago

details:

error raise on console when clicking on a RangeDatepicker

build:

error on console:

TypeError: IU.config is not a function
    at uie (chakra-dayzed-datepicker.esm.js:165:18)
    at Y8 (react-dom.production.min.js:166:137)
    at AZ (react-dom.production.min.js:289:386)
    at $Z (react-dom.production.min.js:279:389)
    at q0e (react-dom.production.min.js:279:320)
    at wC (react-dom.production.min.js:279:180)
    at Vk (react-dom.production.min.js:270:88)
    at mF (react-dom.production.min.js:272:300)
    at sp (react-dom.production.min.js:127:105)
    at react-dom.production.min.js:266:269

possible solution, my coworker @hexelon solve it in this fork (here is the specific commit)

I can open a pr if needed, please let me know 🙏

aboveyunhai commented 2 years ago

A minimal repo/codesandbox to reproduce the bug will be helpful to find out the core issue. The error code looks like your production build is failing to include dependencies. I'm afraid that you will likely face the similar issue in the future for other packages if this is not a lib bug indeed.

wellDan28 commented 2 years ago

yeah, you're totally right, I'll should have add an example, I'll try to find time to do it, don't have an eta.

dreammaker7 commented 2 years ago

@wellDan28 Hi wellDan, I also encountered the problem you described, how can I avoid this error in my project until the problem is solved?

aboveyunhai commented 2 years ago

@dreammaker7 I assume the problem might be the dependency package is failed to import because of some specific bundling tools like Vite? Since the package is relatively simple, as a simple solution, I can just remove that package, and copy/paste the code from that lib into a single file, and then give the original author full credit. Then you can test it out to see if it works.

aboveyunhai commented 2 years ago

The bug should be resolved by v0.2.3