These are the steps that are generating the issue:
- create a new project with “cocos new MyProject -l js”
- enter the new folder “cd MyProject”
- run the project for the web “cocos run -p web”
for a second I can see the cocos image appearing, then it disappear and the screen remain blank with only the FPS text.
In the console I see this error:
“GET /res/MainScene.json HTTP/1.1” 404
If I copy the whole project folder in c:\wamp\www\ and open 127.0.0.1/MyProject in the browser, it works fine!
The problem is just with “cocos run -p web”
It is looking for MainScene.json to create the scene, but why??
The source created by “cocos new -l js” create the scene in the code , in the app.js, it doesn’t use MainScene.json (that is something I’ve seen with cocos studio)
Last, If I run “cocos run -p web -m release” it works fine!
So the issue appears just in cocos run and in debug mode
any clue please?
thanks
regards
Corrado