babel-node-debug icon indicating copy to clipboard operation
babel-node-debug copied to clipboard

Doesn't appear to be reading my .babelrc

Open krainboltgreene opened this issue 9 years ago • 5 comments

For some reason it's not reading my babelrc file, so it doesn't know what to do with my syntax :(

krainboltgreene avatar Dec 17 '15 23:12 krainboltgreene

So it's not the issue I thought it was (bug with babel-node) but I am having odd issues.

krainboltgreene avatar Dec 18 '15 01:12 krainboltgreene

This is almost certainly related to babel-node-debug using its locally installed babel dependency, which probably detects .babelrc relative to babel-node-debug/ instead of $PWD. I'm not sure when I'll be able to get to this (Christmas), but it's probably a simple fix.

Thanks for reporting!

CrabDude avatar Dec 22 '15 04:12 CrabDude

If my suspicion is correct (still need to verify), might be possible to spawn a child process with the properly set cwd:

spawn('bash', ['-i'], {
  cwd: new_cwd,
  env: new_env,
  stdio: 'inherit'
});

CrabDude avatar Feb 05 '16 03:02 CrabDude

Did you fix this ? =)

ChrisCinelli avatar May 12 '16 23:05 ChrisCinelli

Don't remember. I'll take a look.

CrabDude avatar May 13 '16 02:05 CrabDude