Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bit build Failing - Cannot write file because it would overwrite input file. #8958

Closed
dzfweb opened this issue Jun 18, 2024 · 4 comments
Closed

Comments

@dzfweb
Copy link

dzfweb commented Jun 18, 2024

Description

I just setup a new self-hosted scope and exported the first tag version. Everything worked goods. But now after I'm trying to add a new version, locally it is failing when running any of these commands

bit tag --build
bit build

The error

✔ installing dependencies
✔ install packages in 59 capsules. Succeeded in 30s
  Total 59 components to build
  

  Running build pipeline using 1 environment(s), total 10 tasks 
  building 59 components of env "teambit.react/react". original seeders of this env: 59, graph of this env: 59, graph total (include other envs): 59
✔ (1/10) [Aspect: CoreExporter] Completed successfully in 4ms
✖ env: teambit.react/react, task "teambit.compilation/compiler:TSCompiler" threw an error
error TS5055: Cannot write file '/home/dzfweb/Library/Caches/Bit/capsules/e6173ec7a/[email protected]/dist/figma-embed.d.ts' because it would overwrite input file.

Specifications

  • Bit version: 1.7.3
  • Node version: 21.6.1
  • npm / yarn version: 1.22.19

I've alread recloned the repo, cleaned bit cache, manualyl deleted the capsules, but nothing changed.

@GiladShoham
Copy link
Member

GiladShoham commented Jun 18, 2024

Try adding outDir as dist in your tsconfig

@dzfweb
Copy link
Author

dzfweb commented Jun 18, 2024

Try adding outDir as dist in your tsconfig

Same error :/

@dzfweb
Copy link
Author

dzfweb commented Jun 19, 2024

Seems that I'm able to move on after bumping the package version. Weird thing is that this is an untouched package, I needed to force build --unmodified to bump its version and now seems to be working.

*** UPDATE ***
after the version bump, new build started to fail again, with the same error :/

@itaymendel
Copy link
Contributor

seems like issue was resolved on a slack conversation.
issue was file names confusing tsc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants