Expected behavior:
A clear and concise description of what you expected to happen.
React-Create-App web app:
After running npm start or npm run build the app crashes.
Describe the bug:
A clear and concise description of what happened instead of the expected behavior.
TypeError: container.replaceRule is not a function
Array.onProcessStyle
node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js:84
81 |
82 | selector = selector.replace(refRegExp, replaceRef);
83 | var name = styleRule.key + "-" + prop;
> 84 | container.replaceRule(name, style[prop], _extends({}, options, {
| ^ 85 | selector: selector
86 | }));
87 | } else if (isNestedConditional) {
Reproduction:
React-Create-App web app:
After running npm start or npm run build the app crashes.
Add a failing test to the suite and submit a PR. A test is even better than a fix.
Alternatively create a codesandbox.io with the issue. Make it as minimal as possible as this will help us find the bug quicker.
Versions (please complete the following information):
jss:
"jss": "10.3.0",
"jss-rtl": "0.3.0",
Browser [e.g. chrome, safari]: All browsers.
OS [e.g. Windows, macOS]: MacOS
Feel free to add any additional versions which you may think are relevant to the bug.
Managing expectations:
Maintainers will not be fixing the problem you have unless they have it too, if you want it to get fixed:
Submit a PR with a failing test
Discuss a solution
Implement it
You can also do the first step only and wait for someone else to work on a fix. Anything is much better than nothing.
Expected behavior: A clear and concise description of what you expected to happen. React-Create-App web app: After running
npm start
ornpm run build
the app crashes.Describe the bug: A clear and concise description of what happened instead of the expected behavior.
Reproduction: React-Create-App web app: After running
npm start
ornpm run build
the app crashes.Add a failing test to the suite and submit a PR. A test is even better than a fix. Alternatively create a codesandbox.io with the issue. Make it as minimal as possible as this will help us find the bug quicker.
Versions (please complete the following information):
Managing expectations:
Maintainers will not be fixing the problem you have unless they have it too, if you want it to get fixed:
You can also do the first step only and wait for someone else to work on a fix. Anything is much better than nothing.