cssinjs/jss

UMD builds not working on import

開放

#1,567 建立於 2021年10月21日

 (6 則留言) (0 個反應) (0 位負責人)JavaScript (434 個分叉)batch import
bugcomplexity:lowhelp wanted

倉庫指標

星標
 (7,000 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南