[Bug]: Failed to emit file into cwd since v3
See original GitHub issueSelf-service
- I’d be willing to implement a fix
Describe the bug
@babel/cli can’t emit to the current working directory is not working since v3
To reproduce
const {promises: {writeFile}} = require(`fs`);
await writeFile(`input.js`, '', 'utf-8');
await packageJsonAndInstall({
scripts: {
build: `babel input.js -d .`,
},
devDependencies: {
[`@babel/core`]: `^7.15.0`,
[`@babel/cli`]: `^7.14.8`,
},
});
await expect(yarn(`build`)).rejects.toThrow(`Command failed`);
Environment
System: OS: Linux 5.4 Ubuntu 20.04.3 LTS (Focal Fossa) CPU: (6) x64 Intel® Core™ i5-9600K CPU @ 3.70GHz Binaries: Node: 14.17.0 - /tmp/xfs-f9a896e2/node Yarn: 3.0.1 - /tmp/xfs-f9a896e2/yarn npm: 6.14.13 - ~/.asdf/installs/nodejs/lts/bin/npm
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
node.js - Emit skipped when parsing config typescript files
TypeScript files outside of the project folder will produce an Emit skipped error. I can't tell if this is your issue because '....
Read more >Environmental Impact Statement on Rules to Eradicate ...
The intent of this rule proposal is to authorize control efforts that would eliminate CWD where it exists in the state and protect...
Read more >Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >Changelog — Supervisor 4.2.4 documentation - Supervisord
Fixed a bug on Python 3 where a network error could cause supervisord to crash with ... error message is now emitted if...
Read more >What's New In Python 3.8 — Python 3.11.1 documentation
Since the parameters to the left of / are not exposed as possible keywords, ... Python now uses the same ABI whether it's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Should have been fixed in https://github.com/yarnpkg/berry/pull/3242 /
3.0.1-rc.2in my actual environment:
:\