airbnb / airbnb/react-with-styles

Issues with react-with-styles in electron

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.7k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

I am getting the following error:

```
Uncaught TypeError: makeFromTheme is not a function
at /Users/jwaldrip/dev/src/github.com/CommercialTribe/companion/node_modules/react-with-styles/lib/ThemedStyleSheet.js:63:40
at Array.forEach (native)
at Object.create (/Users/jwaldrip/dev/src/github.com/CommercialTribe/companion/node_modules/react-with-styles/lib/ThemedStyleSheet.js:58:23)
at withStyles (/Users/jwaldrip/dev/src/github.com/CommercialTribe/companion/node_modules/react-with-styles/lib/withStyles.js:79:59)
at Object. (/Users/jwaldrip/dev/src/github.com/CommercialTribe/companion/src/react/full-logo/full-logo.component.jsx:30:47)
at Object. (/Users/jwaldrip/dev/src/github.com/CommercialTribe/companion/src/react/full-logo/full-logo.component.jsx:74:3)
at Module._compile (module.js:571:32)
at Object.require.extensions.(anonymous function) [as .jsx] (/Users/jwaldrip/dev/src/github.com/CommercialTribe/companion/node_modules/electron-compile/lib/require-hook.js:77:14)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Read node_modules/react-with-styles/lib/ThemedStyleSheet.js and withStyles.js, then inspect src/react/full-logo/full-logo.component.jsx at the reported call site. Reproduce the Electron startup path and determine what is needed for the makeFromTheme error to stop occurring.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, react
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.