-
-
Notifications
You must be signed in to change notification settings - Fork 148
preact-compat ^3.11.0 broke a link component #292
Comments
Yikes! Looking into this. I'm wondering if it's something specific to Preact 6.x? |
@bebraw I'm seeing a bunch of |
I think that's expected as it's build time error. react-dom generates the static version then. Here's the component: https://github.com/webpack/webpack.js.org/blob/master/components/link/link.jsx . Would it help if I reduced the issue to a particular commit of preact-compat? |
that'd be ideal, though I don't mind debugging. Just I am not sure I'm running this the right way (followed your steps but I don't see anything about Preact in the stack). |
Ok, I'll reduce it to a commit today then. |
@bebraw actually I'm thinking it's this: If you think that looks suspicious (I do!) I will just revert it and publish as a |
There could be an indirect dep, but I don't recall the code should use it directly. That's a good commit to start checking from. |
(also a good one since I kinda want to revert that line anyway, it seems incorrect) |
Hmm - haven't had anyone try to install from git for this repo before, usually people |
Yeah, installing from a git repo is a niche case. |
Happy to support it (though it'd be nice to do it all in the npm-script, maybe dropping node<4 would make that work). Just want to figure out the Link thing. Nothing so far :( |
Fix released as 3.13.1! 🎉 |
Thanks. 👍 |
Just wanted to chime in and say that I just got bitten by a related bug to this and it fixed it. Saved my bacon. Thanks! 🍷 |
Awesome! |
Hi,
For some reason, a recent patch release broke
Link
at the webpack site. That led to a build failure. Fixing preact-compat version to 3.11.0 fixed the issue so it looks like there was some regression in a newer one.I set up an example to study. Clone,
yarn
,npm run build
, examine the build result (you should get a hefty error alongTypeError: Cannot read property 'to' of undefined
).The generated code looks like this:
The error points at
var to = _ref.to,
meaning_ref
isundefined
. I guess the question is, what changed to cause this new behavior.The text was updated successfully, but these errors were encountered: