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
{{ message }}
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
I am trying (unsuccessfully) to use plugin-less in conjunction with server-side rendering. The root cause of the problem is CSSPluginBase.prototype.instantiate(), which attempts to inject a style element into the DOM without document being defined:
I am not sure what the correct fix is in this case. There may be two. First, explicitly checking if document is defined in CSSPluginBase.prototype.instantiate() seems appropriate and works for me in practice:
Second, less.js may require a fix so that the CSSPluginBase() constructor is not even called unless plugin-less is running in a browser. plugin-css explicitly checks if it is running in a browser, for example, and does not have an issue with server-side rendering. Neither does mobilexag/plugin-sass.