Closed tinyearth closed 6 years ago
Atom: 1.24.0 ia32 Electron: 1.6.16 OS: Windows 10 Thrown From: react package 0.17.0
Failed to activate the react package
At Cannot read property 'source.js.jsx' of undefined
TypeError: Cannot read property 'source.js.jsx' of undefined
at AtomReact.autoSetGrammar (/packages/react/lib/atom-react.coffee:134:54)
at AtomReact.processEditor (/packages/react/lib/atom-react.coffee:322:6)
at Workspace.observeTextEditors (~/AppData/Local/atom/app-1.24.0/resources/app/src/workspace.js:728:15)
at AtomReact.activate (/packages/react/lib/atom-react.coffee:343:46)
at Package.activateNow (~/AppData/Local/atom/app-1.24.0/resources/app/src/package.js:230:33)
at measure (~/AppData/Local/atom/app-1.24.0/resources/app/src/package.js:206:33)
at Package.measure (~/AppData/Local/atom/app-1.24.0/resources/app/src/package.js:88:25)
at activationPromise.Promise (~/AppData/Local/atom/app-1.24.0/resources/app/src/package.js:200:20)
at Package.activate (~/AppData/Local/atom/app-1.24.0/resources/app/src/package.js:198:38)
at PackageManager.activatePackage (~/AppData/Local/atom/app-1.24.0/resources/app/src/package-manager.js:695:42)
at config.transactAsync (~/AppData/Local/atom/app-1.24.0/resources/app/src/package-manager.js:670:36)
at Config.module.exports.Config.transactAsync (~/AppData/Local/atom/app-1.24.0/resources/app/src/config.js:367:24)
at PackageManager.activatePackages (~/AppData/Local/atom/app-1.24.0/resources/app/src/package-manager.js:668:23)
at PackageManager.activate (~/AppData/Local/atom/app-1.24.0/resources/app/src/package-manager.js:647:50)
at loadStatePromise.loadState.then (~/AppData/Local/atom/app-1.24.0/resources/app/src/atom-environment.js:841:27)
advanced-open-file 0.16.7
atom-material-syntax 1.0.8
atom-material-ui 2.1.1
react 0.17.0
``
It looks like this was broken by atom/atom#16297 since the refactor didn't add a shim for the grammarsByScopeName
. I looks like grammarForScopeName()
is a replacement that's available before and after refactor, so I'm going to try to PR that fix.
Any update on this?
@Dajust see above where @duien put in a fix.
Until her edits get merged, you could just uninstall the broken package and install hers in place. Use this to search packages in Atom: git@github.com:duien/atom-react.git
git@github.com:duien/atom-react.git This won't work as well.
Any updates?
I just got this as well.
Try latest release v0.18.0
Step To Reproduce
Atom: 1.24.0 x64 Electron: 1.6.16 OS: Mac OS X 10.13.3 Thrown From: react package 0.17.0
Stack Trace
Failed to activate the react package
Commands
Non-Core Packages