Trying to publish my Cocos2d-JS project using the command and getting the following error:
cocos compile -p web -m release
Running command: compile
Building mode: release
Traceback (most recent call last):
File "/Users/ed/cocos2d-js-v3.3/tools/cocos2d-console/bin/cocos.py", line 719, in <module>
run_plugin(command, argv, plugins)
File "/Users/ed/cocos2d-js-v3.3/tools/cocos2d-console/bin/cocos.py", line 682, in run_plugin
plugin.run(argv, dependencies_objects)
File "/Users/ed/cocos2d-js-v3.3/tools/cocos2d-console/plugins/project_compile/project_compile.py", line 1435, in run
self.build_web()
File "/Users/ed/cocos2d-js-v3.3/tools/cocos2d-console/plugins/project_compile/project_compile.py", line 1150, in build_web
build_web.gen_buildxml(project_dir, project_json, publish_dir, buildOpt)
File "/Users/ed/cocos2d-js-v3.3/tools/cocos2d-console/plugins/project_compile/build_web/__init__.py", line 54, in gen_buildxml
f.close()
UnboundLocalError: local variable 'f' referenced before assignment
Anyone had this?
Problem was with the misconfigured project.json file.