Error with using jsroot

ROOT Version: JSROOT dev

Hello,
I want to use ROOTJS version dev with but recently it cannot work.

I used like:

And the browser is Microsoft Edge version 99.0.1150.55 (64 bit)
It turns waring like:
"
JSRoot.core.js:300
Uncaught (in promise) TypeError: Failed to resolve module specifier ‘…/modules/core.mjs’. The base URL is about:blank because import() is called from a CORS-cross-origin script.
at JSRoot.core.js:300:21
at JSRoot.core.js:3:77
at JSRoot.core.js:5:3
"
I can use JSROOT version 6.3.4 with successfully. But TMultrGraph_3d seems not supported in this version(6.3.4)?

I think @linev can help you.

Hi,

In current dev version many changes were done, therefore some application may not yet work.
Are you using https://root.cern/js/dev/? Please try https://jsroot.gsi.de/dev/.
And we will try to solve problem with root.cern website.

Regards,
Sergey

We also update root.cern/js/ website. Can you check it as well?

If none is working, try:

<script src="https://root.cern/js/dev/scripts/JSRoot.core.js" type="text/javascript" crossorigin="anonymous"></script>

Here new is crossorigin="anonymous", for some reason it is important now.

Also - for dev version one can directly use modules.
See how it can be used now here:

And updated docu:

1 Like

Thanks!
This “crossorigin=“anonymous”” works well!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.