question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JS project loads Royale libs

See original GitHub issue

The JS project, like the one in the wiki, always load the Royale libs.

MXMLJSC
+royalelib=...

Those libs can interfer with the Javascript project classes.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Sep 10, 2018

I’m making a few commits to the Royale compiler that should help clear up these exceptions. You’ll be able to try a nightly build soon that I think will work better.

0reactions
joshtynjalacommented, Sep 10, 2018

After there’s a nightly build of Royale with my new compiler changes, you should change your asconfig.json for playerglobal.js library to look like this:

{
	"type": "lib",
	"config": "js",
	"compilerOptions": {
        "targets": [
            "SWF",
            "JS"
        ],
        "include-sources": [
            "sources/main/actionscript",
            "sources/main/javascript"
        ],
        "output": "bin/playerglobalJS.swc"
    }
}

(Your PlayerglobalTester asconfig.json file is fine… it actually doesn’t need to specify targets, but it won’t hurt)

It’s not strictly required, but at least when you’re working on that project, all of the Royale UI components will be hidden from code intelligence.

Previously building a SWC with "config": "js" was failing, but that was one of the bugs that I just fixed in the compiler.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using external JavaScript libraries in Apache Royale
This example shows how to use external JavaScript libraries in your Apache Royale application. You can add quick functionality to your ...
Read more >
Dependency error when extending class and implementing ...
I have a large project that loads many separate projects from a menu. It's just like loading SWF files. Each project shares the...
Read more >
Load external Node.js modules with Apache Royale
Load external Node.js modules with Apache Royale. Expose Node.js modules ... First, make sure to install the boxen module in your project's root...
Read more >
Using images from SWC libraries in Apache Royale 0.9.8
We are working on a migration project using Apache Royale and the project contains plenty of SWC files that contains JPG and PNG...
Read more >
External JS file not loading in libraries.yml : r/drupal - Reddit
Hi all, I'm new to reddit and this is only my 2nd drupal project I've worked on. I am having an issue with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found