Skip to content

Conversation

@antoinell
Copy link
Contributor

@antoinell antoinell commented Dec 28, 2025

Implementation for #1393

demonstration repository : https://github.com/antoinell/znai-quizzes

That is not yet working, the demo app is not yet able to display the quiz and is displaying errors in the JavaScript console

[Error] TypeError: 'text/css' is not a valid JavaScript MIME type.
[Error] TypeError: Module name, 'react' does not resolve to a valid URL.
[Error] TypeError: 'text/plain' is not a valid JavaScript MIME type.

I expect to be solving this in the next few days.

the reason is to indirectly bump net.minidev:json-smart to 2.6.0.

We currently have this dependency tree :

  +- com.jayway.jsonpath:json-path:jar:2.9.0:compile
  |  +- net.minidev:json-smart:jar:2.5.0:runtime

  There is a vulnerability, see https://www.mend.io/vulnerability-database/CVE-2024-57699?utm_source=JetBrains
@antoinell
Copy link
Contributor Author

Adding this in the html

<script type="importmap">
    {
      "imports": {
        "react": "/znai/static/index-By8_f_qN.js",
        "react-dom": "/znai/static/index-By8_f_qN.js"
      }
    }
</script>

before all the javascripts helps to resolve react

The extra css should also be in a separate resource file as the code to load css is different.

mode: 'automatic'
},
logLevel: 'debug',
preserveEntrySignatures: 'strict',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

1 participant