Closed mikol-styra closed 7 years ago
Note that this is against 0.1.30 because that is what plugin-less depends on.
Sure, a PR here would be welcome!
Great! PR on its way. Are there any docs describing how to build and test? I haven’t been able to find any or to get anything going through trial and error.
See: https://github.com/systemjs/plugin-less/issues/6
When I try to use plugin-less in conjunction with server-side rendering, I get the following error:
The root cause of the problem is
CSSPluginBase.prototype.instantiate()
, which attempts to inject a style element into the DOM withoutdocument
being defined:Explicitly checking if
document
is defined inCSSPluginBase.prototype.instantiate()
seems appropriate and works for me in practice:But maybe that is not desirable for some reason?