element-call icon indicating copy to clipboard operation
element-call copied to clipboard

[ERROR] Could not load src/index.html: ENOENT: no such file or directory

Open menturion opened this issue 2 years ago • 6 comments

Steps to reproduce

I am trying to build "element-call" according to the build instructions (given here: https://github.com/vector-im/element-call#host-it-yourself).

The build process fails with the below message:

yarn build
yarn run v1.22.19
$ vite build
vite v2.9.14 building for production...
✓ 0 modules transformed.
mv: no such file or directory: /element-call/dist/src/*.html
[vite:load-fallback] Could not load src/index.html: ENOENT: no such file or directory, open '\element-call\src\index.html'
error during build:
Error: Could not load src/index.html: ENOENT: no such file or directory, open '\element-call\src\index.html'
error Command failed with exit code 1.

Outcome

Error

Operating system

No response

Browser information

No response

URL for webapp

No response

Will you send logs?

No

menturion avatar Dec 01 '22 09:12 menturion

I can't reproduce this. I assume from the backslashes in your paths that you're using Windows?

robintown avatar Dec 02 '22 17:12 robintown

That"s right. I am using Windows. Sorry, I missed mentioning that.

menturion avatar Dec 02 '22 18:12 menturion

Hey . I have the same probulem, I am using window and after yarn build here is my error :

vite v2.9.14 building for production...
✓ 0 modules transformed.
mv: no such file or directory: C:/Users/US/Desktop/ali/Projects/element-call/matrix-js-sdk-call/element-call/dist/src/*.html
[vite:load-fallback] Could not load src/index.html: ENOENT: no such file or directory, open 'C:\Users\US\Desktop\ali\Projects\element-call\matrix-js-sdk-call\element-call\src\index.html'
error during build:
Error: Could not load src/index.html: ENOENT: no such file or directory, open 'C:\Users\US\Desktop\ali\Projects\element-call\matrix-js-sdk-call\element-call\src\index.html'
error Command failed with exit code 1.

how can I solve it ?

alisafa1371 avatar Feb 12 '23 12:02 alisafa1371

That"s right. I am using Windows. Sorry, I missed mentioning that.

Hey @menturion . could you solve your problem?

alisafa1371 avatar Feb 12 '23 12:02 alisafa1371

@alisafa1371

I wasn't able to fix this. Tried it a while w/o success. Still hope that one of the devs (@robintown) will fix this.

menturion avatar Feb 12 '23 13:02 menturion

@robintown @alisafa1371

This can be fixed on a Windows system by copying (i.e. not moving) the "/public/index.html" file into the root folder "/".

menturion avatar Dec 12 '23 18:12 menturion