I have a little question about building projects prepared with the editor on Windows 10.
So I export the project and then I follow the instructions described in the documentation:
npm i
npm run build
and at this point I get an error in the terminal which says that ‘rm’ command is unknown.
So that’s basically a Linux command, but I don’t understand, why does the editor generate a package.json with Linux commands if we work in an editor for Windows? So I don’t understand, do I need to change the commands in the package.json file to Windows analogues, or do I have to build it in Linux? Can anybody explain me what am I doing wrong and how to build the project correctly on Windows?
thanks for the update, I’ve tried to replace package.json with what you’ve shared, but unfortunately it still doesn’t build it. It shows the following error:
But then I’ve installed Git Bash too and tried to build it and it worked. But unfortunately when I run the build I get a blank window and the following errors in the console:
@artteq I think the problem comes from the server. It looks like the application cannot access “.build/src/game.js” (forbidden).
Is it working locally if you type “npm run webserver” and access http://localhost:1338 ?
Yeah, thanks for the hint @julien-moreau , I’ve tried it on a local server and it works, but when I put it on my web server it shows me the following errors:
And that’s rather strange, because all my other webpages work correctly. I’ve also tried resetting and changing permissions on files and folders, but no success.
Maybe you could point me to a possible solution? It’s because I’ve tried to look for it but haven’t found anything useful on the Internet.
@artteq excellent !
I’m releasing today, will let you know once done!
Don’t hesitate to give feedbacks and report other bugs using the editor, it’s alsways a pleasure to have users
I’m releasing a fix ASAP and will remove the “Material Editor” as it generates problems at the moment.
To fix, can you remove the material created when you opened the tool “Material Editor” using the tool? This might solve the problem
@julien-moreau thank you. I can’t wait to use the next version!! I know there’s been a lot of activity, but this is helping make the core workflow much more stable! Can’t wait!