cerebroapp / cerebro

🔵 Cerebro is an open-source launcher to improve your productivity and efficiency
https://www.cerebroapp.com/
MIT License
8.27k stars 454 forks source link

React.createContext is not a function #656

Closed linonetwo closed 1 year ago

linonetwo commented 1 year ago
Load plugin: @cerebroapp/cerebro-ui
externalPlugins.js:80 Path: /Users/linonetwo/Library/Application Support/Cerebro/plugins/node_modules/@cerebroapp/cerebro-ui...
externalPlugins.js:20 Error requiring /Users/linonetwo/Library/Application Support/Cerebro/plugins/node_modules/@cerebroapp/cerebro-ui
externalPlugins.js:21 TypeError: React.createContext is not a function
    at Object.<anonymous> (/Users/linonetwo/Lib…js/index.js:2726:48)
    at Object.<anonymous> (/Users/linonetwo/Lib…cjs/index.js:7745:3)
    at Module._compile (node:internal/modules/cjs/loader:1120:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1175:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at i._load (node:electron/js2c/renderer_init:33:356)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
externalPlugins.js:83 Plugin is not valid, skipped

Issue

linonetwo commented 1 year ago

Also

Load plugin: @types/node
externalPlugins.js:80 Path: /Users/linonetwo/Library/Application Support/Cerebro/plugins/node_modules/@types/node...
externalPlugins.js:20 Error requiring /Users/linonetwo/Library/Application Support/Cerebro/plugins/node_modules/@types/node
externalPlugins.js:21 Error: Cannot find module '/Users/linonetwo/Library/Application Support/Cerebro/plugins/node_modules/@types/node'
Require stack:
- /Applications/Cerebro.app/Contents/Resources/app.asar/main/index.html
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at i._resolveFilename (node:electron/js2c/renderer_init:33:1095)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at i._load (node:electron/js2c/renderer_init:33:356)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at externalPlugins.js:11:25
    at externalPlugins.js:81:22
externalPlugins.js:83 Plugin is not valid, skipped

This werid.

linonetwo commented 1 year ago

Completely delete /Users/linonetwo/Library/Application Support/Cerebro fixes this.

ogustavo-pereira commented 1 year ago

Are you having any problems right now? I don't understand if it was resolved.

linonetwo commented 1 year ago

Solved.