Closed ayrton closed 6 years ago
? is this from the Flow updates? In what environment?
This is new since the latest release. This happens during feature/integrations tests when SSR'ing React
Is this a canusedom issue?
My first thought was this might be a npm build
issue (with the upgraded webpack module)
Try using ExecutionEnvironment.canUseEventListeners instead of the ExecutionEnvironment.canUseDOM, I've never used ssr so I don't know how to even set it up
Really weird that this even can happen, https://github.com/JedWatson/exenv/blob/master/index.js#L11 is not that fancy - if the window isn'tthere then it shouoldn't be called. Have you checked the rollup version?
This isn't a exenv
afaik, just an issue with the current build step. I haven't checked the rollup version, can you link me to it, if we are going to switch anyway we might just bypass this issue alltogether
You can find it here: https://github.com/gforge/react-key-handler/tree/rollup
just clone and checkout origin/rollup
@gforge super helpful, I'm removing the webpack dependency in #150 and replacing it with parcel + rollup. Will release a 1.2.0 rc once finished, and when confirmed it's fully working we'll be able to move on to your next PR
Awesome, I've merged with your upstream changes. I've heard of parcel but never used it - seems pretty neat. The packaging tools are way too complicated and if parcel delivers it seems great.
I'm hoping to find the time tomorrow to release + test this out on the Product Hunt main app (via a release candidate). If all seems well I'll release an official version, will keep you up to date.
Parcel is great as in that it's a no configuration app bundler, I like it.
Did you manage to track down the bug?
Having gotten the chance to test out the Rollup version but I am confident this will have addressed this bug. Been travelling, I will be able to release this this week, sorry for the holdup
On 19 Aug 2018, at 20:42, Max Gordon notifications@github.com wrote:
Did you manage to track down the bug?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hello 👋 I also have this issue since 1.1.0
in an Electron app that use a package with react-key-handler
as a dependency.
Working fine with 1.0.1
, and waiting for the next update. Thanks 🙏
Fixed in 1.2.0-beta.2