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

Building with existing /.config directory breaks build #3068

Open
baconsalad opened this issue Mar 8, 2025 · 0 comments
Open

Building with existing /.config directory breaks build #3068

baconsalad opened this issue Mar 8, 2025 · 0 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems

Comments

@baconsalad
Copy link

Steps to reproduce

I have a superfluous /.config folder with root permissions. Some buggy thing threw it on there and I just ignored it until now. Building with 'yarn build' fails because of it.

✗ Build failed in 3.65s
error during build:
[vite-plugin-svgr] Could not load /xx/element-call/src/icons/Check.svg?react (imported by src/input/Input.tsx): Could not load /xx/element-call/src/icons/Logo.svg?react (imported by src/Header.tsx): Could not load /xx/element-call/src/icons/LogoLarge.svg?react (imported by src/auth/LoginPage.tsx): EACCES: permission denied, open '/.config/svgrrc'
    at async open (node:internal/fs/promises:638:25)
    at async Object.readFile (node:internal/fs/promises:1242:14)
    at async #readConfiguration (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:76:26)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:44:40)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:64:28)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:64:28)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:64:28)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:64:28)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:64:28)
    at async search (/xx/element-call/node_modules/cosmiconfig/dist/Explorer.js:64:28)
error Command failed with exit code 1.

Outcome

What did you expect?

build.

What happened instead?

not build.

Operating system

Gentoo

Browser information

no.

URL for webapp

no.

Will you send logs?

No

@baconsalad baconsalad added the T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

No branches or pull requests

1 participant