You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior? TypeError: undefined is not an object (evaluating 'e.setAttribute').
In fc24512, support for nonces was added. The nonce variable is declared using const. This const is causing errors in browsers not supporting it.
The Webpack-minified createStyleElement function looks as follows (basic formatting applied):
functionh(e){vart=document.createElement("style");if(void0===e.attrs.type&&(e.attrs.type="text/css"),void0===e.attrs.nonce){constt=function(){// t is reassigned0;returnn.nc}();t&&(e.attrs.nonce=t)}returnm(t,e.attrs),// m is addAttrsf(e,t),t}
It appears that t (style) is reassigned to a function. As this value is passed to addAttrs) it now no longer has a setAttribute function.
What is the expected behavior?
No TypeError is thrown on older browsers. Newer browsers are fine.
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
Webpack v4.16.5
Node v8.10.0
OS: Windows 10 version 1803
The text was updated successfully, but these errors were encountered:
Occurs in v0.22.0.
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
TypeError: undefined is not an object (evaluating 'e.setAttribute').
In fc24512, support for nonces was added. The nonce variable is declared using
const
. Thisconst
is causing errors in browsers not supporting it.The Webpack-minified createStyleElement function looks as follows (basic formatting applied):
It appears that
t
(style
) is reassigned to a function. As this value is passed toaddAttrs
) it now no longer has asetAttribute
function.What is the expected behavior?
No TypeError is thrown on older browsers. Newer browsers are fine.
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
Webpack v4.16.5
Node v8.10.0
OS: Windows 10 version 1803
The text was updated successfully, but these errors were encountered: