element-hq / element-hq/element-call

Building with existing /.config directory breaks build

Open
#3,068 0 comments 0 reactions 0 assignees View on GitHub
T-Defect
Dominant language
TypeScript
Stars
996
Forks
213
Avg merge
1d 8h
Merged PRs (30d)
55

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.