cssinjs / cssinjs/jss

UMD builds not working on import

Open
#1,567 6 comments 0 reactions 0 assignees View on GitHub
bug complexity:low help wanted
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

__Expected behavior:__
I'm trying to implement `react-jss` via CDN. Importing the UMD build via `` 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](https://codesandbox.io/s/practical-pine-obedu) - loading `react`, `react-dom`, and `react-jss`

__Versions:__
- jss: 10.8.1
- browser: any

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.