-
Notifications
You must be signed in to change notification settings - Fork 147
Instanceof fail with symbolic link #551
Comments
thank you @GMartigny ! just in case, could you also provide the following your steps with
my output is: > require("esm")
esm enabled
> import './index.js'
instanceof false
== false
undefined |
just reading your repo code ...
I guess you mean the opposite: should log |
I'm on Ubuntu 14.06 with node 10.6.0 Well, I meant that the script would return |
@jdalton this seems to be a regression. @GMartigny in the interim you might be able to use |
Just for the record, I'll wait for a fix then =) |
For testing we can avoid pulling in various projects and test the root issues.
Update: v3.0.75 is released 🎉 |
Since I update to esm@3.0.75, another error pops up. This is not reproduce by my example repo tho. When I run |
might be better for tracking. although without a repro it might be quite difficult to pinpoint the problem. couple things you could try prior: definitely try the very latest release version first, currently v3.0.79, as there's still quite a bit of things being ironed out with each release. If I hit an exception like you are experiencing, I also usually delete the cache files (in |
Moving |
Hi,
I use Lerna in a multi-repo which create symbolic links between local packages. When using esm with it, tests for constructor fails. Whether you run
instance instanceof Constructor
orinstance.constructor === Constructor
, both fails.I don't reproduce the bug when imported file aren't symbolic links.
Here's a repro-repo to demonstrate.
The text was updated successfully, but these errors were encountered: