Closed jh-RLI closed 1 year ago
On Windows (wsl) the temp folder includes a blank space in the name. This leads to the error when the command attempts to move files. For now i will manually copy the build files to the static/factsheet
folder and move the js/
by moving the static/temp/css/
and static/temp/js/
folders there.
I will close this for now. Currently, we don't provide an automated solution for windows devs. If you require guidance on how to run the react based apps that are integrated into Django on a Windows machine, get in touch with @jh-RLI.
Description of the issue
I tried to run
npm install
andnpm run build
in the/factsheet/frontend
directory. When running the build command, several errors occurred. The errors relate to the script section in the package.json file.https://github.com/OpenEnergyPlatform/oeplatform/blob/2233fe12fc6b8c8b014d0765886f20e5ad0e9b76/factsheet/frontend/package.json#L57-L60
I solved some of the errors by using mkdirp instead of mkdir, but in the end it can't find the path to the static folders for some reason (I stopped debugging at this point)
using my updates and run the build command again i get:
Ideas of solution
Describe possible ideas for solution and evaluate advantages and disadvantages.
Context and Environment
Workflow checklist