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

Trying to use import modules using the plugin does not work - any way to get around this? #684

Open
hmpmarketing opened this issue Jun 8, 2023 · 0 comments

Comments

@hmpmarketing
Copy link

Hi,

I have been trying to no avail importing a module in a webview with cordova. This Particular library from chart IQ only use import statements and I cant get to work. On a browser all works fine.

Something like:

` <script type="module" crossorigin="use-credentials">

    // This inline script acts as the entry point, without creating a separate external file.
    // Reference a file of statically defined chart data.
    //import sample5min from "chartiq/examples/data/STX_SAMPLE_5MIN.js";
    // Reference the charting library.
    import "chartiq/js/standard.js";
    import "chartiq/js/addOns.js";
    import { CIQ } from "chartiq/js/components.js";

    Object.assign(globalThis, { CIQ });

    // Instantiate a CIQ.ChartEngine object, the main object for creating charts.
    window.stxx = new CIQ.ChartEngine({
        container: document.querySelector(".chartContainer")
    });
    </script>`

CIQ / stxx is not available in window no matter what I try. Anything Im missing with this plugin?

Using latest version of cordova ios 6.3

Thanks everyone!

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

1 participant