• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Shared Scripts not working

Scheduled Pinned Locked Moved Feature Suggestions
shared-scripts
3 Posts 2 Posters 440 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Carson Herrick
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
  • J Offline
    J Offline
    JasonL bitHeads
    wrote on last edited by
    #2

    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".

    C 1 Reply Last reply
    0
  • C Offline
    C Offline
    Carson Herrick
    replied to JasonL on last edited by
    #3

    @JasonL
    I can confirm they are working despite a warning, in strict mode.
    Thanks!

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users