Open tafedorov78 opened 5 days ago
look at this
Thanks for I got a gift program😂
I don't think you got it. I mentioned it should be run it remotely, not on your local machine that the point.
I found one thing - if I set a target in tsconfig = es6 it does not work!
I don't think you got it. I mentioned it should be run it remotely, not on your local machine that the point.
A slowly network: http://119.3.232.55/web-mobile/index.html
The root path of import is the dir of script file.So,you should add "../" to return parent dir.
Cocos Creator version
3.8.3
System information
chrome, macos, windows
Issue description
I’m experiencing an issue with a custom component attached to a node. When accessing the component locally using the getComponent method, it returns the expected component. However, when accessing the component remotely in a build from remote host, it returns null. in the attached project - look at PrizeController --> const switcher2 = node.getComponent('NodeSwitchComponent');
Relevant error log output
null
Steps to reproduce
Minimal reproduction project
test.zip