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

TypeError: Cannot read property '0' of undefined #183

Open
hamzamgit opened this issue Jun 18, 2019 · 2 comments
Open

TypeError: Cannot read property '0' of undefined #183

hamzamgit opened this issue Jun 18, 2019 · 2 comments

Comments

@hamzamgit
Copy link

hi, i am getting this error while creating a build using this plugin

C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Utils.js:138
Uncaught TypeError: Cannot read property '0' of undefined
at Object.get_font_path_by_uuid (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Utils.js:138:73)
at Label.parse_properties (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Label.js:52:34)
at Object.create_node (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Utils.js:300:11)
at Sprite.parse_child (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Node.js:204:31)
at Sprite. (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Node.js:169:22)
at Array.forEach (native)
at Sprite.parse_children (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Node.js:168:39)
at Sprite.parse_properties (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Node.js:152:14)
at Sprite.parse_properties (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Sprite.js:11:15)
at Object.create_node (C:\cocos\NewProject\packages\creator-luacpp-support\core\parser\Utils.js:300:11)

@solodon4
Copy link

solodon4 commented Oct 3, 2019

I'm getting the same problem on MacOS. Any suggestions? It looks like the code is trying to open a font file or something, is it possible the font isn't available everywhere?

Uncaught TypeError: Cannot read property '0' of undefined
    at Object.get_font_path_by_uuid (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Utils.js:138:73)
    at Label.parse_properties (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Label.js:52:34)
    at Object.create_node (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Utils.js:300:11)
    at Scene.parse_child (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Node.js:204:31)
    at Scene.<anonymous> (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Node.js:169:22)
    at Array.forEach (native)
    at Scene.parse_children (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Node.js:168:39)
    at Scene.parse_properties (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Node.js:152:14)
    at Scene.parse_properties (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/Scene.js:10:15)
    at state._json_data.forEach.obj (/Users/solodon/Projects/Cocos/creator_to_cocos2dx/creator_project/packages/creator-luacpp-support/core/parser/ConvertFireToJson.js:101:27)

@gauravnba
Copy link

Bump. Getting the same error. No apparent reason found yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants