Answer init error message `open build/index.html: file does not exist`

Viewed 180

Error message:

E:\gocode\answer\cmd\answer>answer init
[upload-dir] try to install...
[upload-dir] install success, upload directory is \data\uploads
[i18n] try to install i18n bundle...
[i18n] find i18n bundle 42
install all initial environment done
[SUCCESS] answer installation service will run at: http://localhost:80/install/ 
2023-08-19 08:50:21.268 ERROR   E:/gocode/answer/internal/install/install_server.go:60  open build/index.html: file does not exist
1 Answers

You need to compile the front-end code first, try using the make ui command to do so.