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 has been archived by the owner on Dec 13, 2018. It is now read-only.
What you did:
I am trying to use glamorous, using CJS modules & running from node.
I am currently needing to use CJS, as I am writing an application using Electronjs, and Javascript. In order to use native node modules (e.g. "fs", i need to use require("fs") )
What happened:
An exception was thrown:
TypeError: Cannot call a class as a function at classCallCheck C:\code\personal\js_sandbox\node_modules\glamorous\dist\glamorous.cjs.js:353:11) at Function.ThemedComponent [as Div (C:\code\personal\js_sandbox\node_modules\glamorous\dist\glamorous.cjs.js:503:7)
The error you are seeing there is because you're using the glamorous dom component (glamorous.Div) rather than the glamorous dom component factory (glamorous.div).
glamorous
version: 4.11.6glamor
version: 2.20.40react
version: 16.2.0Relevant code.
What you did:
I am trying to use glamorous, using CJS modules & running from node.
I am currently needing to use CJS, as I am writing an application using Electronjs, and Javascript. In order to use native node modules (e.g. "fs", i need to use
require("fs")
)What happened:
An exception was thrown:
Reproduction:
https://codesandbox.io/s/pm2ww85nnj
I attempted to fork, and repro in a test, but could not
npm run validate
... have made a comment on that in #352The text was updated successfully, but these errors were encountered: