cssinjs/jss

UMD builds not working on import

Open

#1.567 aberto em 21 de out. de 2021

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (7.000 stars) (434 forks)batch import
bugcomplexity:lowhelp wanted

Description

Expected behavior: I'm trying to implement react-jss via CDN. Importing the UMD build via <script> tag should work out of the box.

Describe the bug: The module does not load and the console generates the error as follows:

Uncaught ReferenceError: module is not defined
    at react-jss.min.js:6
    at react-jss.min.js:1
    at react-jss.min.js:1

Reproduction:

CodeSandbox - loading react, react-dom, and react-jss

Versions:

  • jss: 10.8.1
  • browser: any

Guia do colaborador