Shared Scripts not working
-
Re: Shared Modules - Ability to share code between cloud scripts
I am using"use strict"; bridge.include("external_script_name.ccjs");But when I try to use it, the web editor gives me an error
'external_function_name' is not defined.
I know the external function is all good. The error goes away, when I copy it locally. -
I copied your scripts to my app, tested, it works without any problem.
So, I guess you see the "getPremadeDeck_Dark_001 is not defined" from the editor warning when you hover over your cursor to the triangle warning icon? Actually, You can just ignore it or comment out the "use strict".
-
I copied your scripts to my app, tested, it works without any problem.
So, I guess you see the "getPremadeDeck_Dark_001 is not defined" from the editor warning when you hover over your cursor to the triangle warning icon? Actually, You can just ignore it or comment out the "use strict".
@JasonL
I can confirm they are working despite a warning, in strict mode.
Thanks!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login