Closed maxnachlinger closed 6 years ago
We're seeing this as well, it works in dev mode but in production preact isn't playing nicely with the datepicker (our preferred datepicker because of its smaller bundle size!)
Looks like the research in https://github.com/developit/preact-compat/issues/484 fixed my issue as well :)
First - preact and preact-compat are both awesome - my users really appreciate the smaller bundle sizes and the API enhancements preact brings are great! I also realise this very exception has been addressed here .
Unfortunately, I'm only seeing the above exception in a production build, which kinda exempts me from using
preact/debug
:) At any rate, my issue stems from usingpreact
withpreact-compat
andreact-day-picker
. I've created a simple completely-non-fancy repo here https://github.com/maxnachlinger/daypicker-preact-issue to reproduce this issue.In dev mode, everything is dazzling, but when I build for production I get a curious:
error.