findup-sync icon indicating copy to clipboard operation
findup-sync copied to clipboard

Conflict when using 'esm' module

Open tracker1 opened this issue 6 years ago • 3 comments

trying to use this in conjunction with the 'esm' module..

node -r esm

> var fu = require('findup-sync')

drops out of node at time of require.

tracker1 avatar Mar 27 '19 00:03 tracker1

Hey @tracker1, been awhile. Do you have any more debug info?

phated avatar Mar 27 '19 02:03 phated

@phated not really, took me a while just to narrow it down to the issue I was having... I was only looking for package.json, and for now, just switched to use path.join(process.cwd, 'package.json') which works for my needs at the moment. It's really weird and that the whole world just seems to stop, and poof, no longer inside node.

@phated Need to get to a nodeaz meetup soon, been too long.

tracker1 avatar Mar 28 '19 23:03 tracker1

I think I've found the issue.

Seems esm isn't playing nice with https://github.com/jonschlinkert/resolve-dir.

OmgImAlexis avatar Apr 29 '19 04:04 OmgImAlexis