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

"After compilation, the api.js file was not generated, and there is an api.js.tpl file instead, which prevents the system from functioning." #880

Open
PlatonaBoy opened this issue Oct 26, 2024 · 9 comments
Labels
confirmed-bug Issues with confirmed bugs

Comments

@PlatonaBoy
Copy link

Description: After compiling the project, the expected api.js file was not created. Instead, an api.js.tpl file was generated, which is preventing the system from functioning correctly.

Steps to reproduce the problem:

Clone the repository and ensure you have the latest master of build_tools.
Run the compilation process.
Check the output directory for the presence of the api.js file.
build_tools base repo version:
Operating system: ubnutu20.4

Compiler version: 8.2.0

@yuanphoenix
Copy link

same question

@yuanphoenix
Copy link

But you can rename it to api.js
It works ok

@igwyd
Copy link
Member

igwyd commented Oct 31, 2024

Hello, thank you for the report, i confirm this is bug, issue #71385

@vulgarcoder
Copy link

I just modified the deploy_server.py file by changing 'base.move_file' to 'base.copy_file' on line 117, and now the build works fine.

@Rita-Bubnova Rita-Bubnova added the confirmed-bug Issues with confirmed bugs label Nov 1, 2024
@yuanphoenix
Copy link

I just modified the deploy_server.py file by changing 'base.move_file' to 'base.copy_file' on line 117, and now the build works fine.

It is a good solution!

@zsy1314
Copy link

zsy1314 commented Nov 4, 2024

But you can rename it to api.js It works ok

It works for me too

@yuanphoenix
Copy link

But you can rename it to api.js It works ok

It works for me too

Do you have another question like miss the Icons?

@zsy1314
Copy link

zsy1314 commented Nov 5, 2024

But you can rename it to api.js It works ok

It works for me too

Do you have another question like miss the Icons?

I don't know which icons you are referring to, the icons on the top toolbar are not missing. But when I used version 7.2.1, I encountered the situation where the icons on the top toolbar disappeared after compiling. At that time, I manually copied the icons in the source file to the corresponding path.

# word
\web-apps\apps\documenteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\documenteditor\main\resources\img
# ppt
\web-apps\apps\presentationeditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\presentationeditor\main\resources\img
# excel
\web-apps\apps\spreadsheeteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\spreadsheeteditor\main\resources\img
# common1
\web-apps\apps\common\main\resources\img\controls
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\controls
# common2
\web-apps\apps\common\main\resources\img\toolbar
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\toolbar
# Restart DocumentServer

I don't know if it's still valid now.

@yuanphoenix
Copy link

But you can rename it to api.js It works ok

It works for me too

Do you have another question like miss the Icons?

I don't know which icons you are referring to, the icons on the top toolbar are not missing. But when I used version 7.2.1, I encountered the situation where the icons on the top toolbar disappeared after compiling. At that time, I manually copied the icons in the source file to the corresponding path.

# word
\web-apps\apps\documenteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\documenteditor\main\resources\img
# ppt
\web-apps\apps\presentationeditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\presentationeditor\main\resources\img
# excel
\web-apps\apps\spreadsheeteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\spreadsheeteditor\main\resources\img
# common1
\web-apps\apps\common\main\resources\img\controls
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\controls
# common2
\web-apps\apps\common\main\resources\img\toolbar
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\toolbar
# Restart DocumentServer

I don't know if it's still valid now.

Okay,Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs
Projects
None yet
Development

No branches or pull requests

6 participants