facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 683 forks source link

Uncaught TypeError: Cannot read property 'Component' of undefined #500

Closed rrawla closed 8 years ago

rrawla commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.3 System: Mac OS X 10.11.5 Thrown From: nuclide package, v0.136.0

Stack Trace

Uncaught TypeError: Cannot read property 'Component' of undefined

At /Users/rrawla/.atom/packages/nuclide/pkg/nuclide-test-runner/lib/ui/TestRunnerPanel.js:364

TypeError: Cannot read property 'Component' of undefined
  at Object.<anonymous> (/Users/rrawla/.atom/packages/nuclide/pkg/nuclide-test-runner/lib/ui/TestRunnerPanel.js:364:45)
  at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
  at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:313:12)
  at Module.require (module.js:366:17)
  at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
  at _uiTestRunnerPanel (/Users/rrawla/.atom/packages/nuclide/pkg/nuclide-test-runner/lib/TestRunnerController.js:54:55)
  at new TestRunnerController (/Users/rrawla/.atom/packages/nuclide/pkg/nuclide-test-runner/lib/TestRunnerController.js:102:52)
  at Activation._getController (/Users/rrawla/.atom/packages/nuclide/pkg/nuclide-test-runner/lib/main.js:317:22)
  at atom-workspace.<anonymous> (/Users/rrawla/.atom/packages/nuclide/pkg/nuclide-test-runner/lib/main.js:143:13)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
  at module.exports._executeCallback (/Users/rrawla/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:71:23)
  at space-pen-button.<anonymous> (/Users/rrawla/.atom/packages/tool-bar/lib/tool-bar-button-view.coffee:30:7)
  at space-pen-button.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
  at space-pen-button.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -0:00.8.0 nuclide-test-runner:toggle-panel (atom-pane.pane.active)

Config

{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig",
        "BUCK.autodeps"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "hyperclick",
      "fast-eslint",
      "activate-power-mode",
      "nuclide-test-runner-pytest",
      "tree-view"
    ]
  },
  "nuclide": {
    "installRecommendedPackages": true,
    "nuclide-arcanist": {},
    "nuclide-buck-files": {},
    "nuclide-clang-atom": {},
    "nuclide-console": {},
    "nuclide-datatip": {},
    "nuclide-debugger-hhvm": {},
    "nuclide-flow": {},
    "nuclide-format-js": {},
    "nuclide-hack": {},
    "nuclide-health": {},
    "nuclide-home": {
      "showHome": false
    },
    "nuclide-ios-simulator-logs": {},
    "nuclide-ocaml": {},
    "nuclide-output": {},
    "nuclide-react-native": {},
    "nuclide-working-sets": {},
    "use": {
      "hyperclick": false
    }
  }
}

Installed Packages

# User
atom-react-native-autocomplete, v0.0.24
atom-react-native-css, v1.1.0
egghead-react-snippets, v1.1.1
git-grep-provider, v0.9.3
haskell-grammar, v0.4.0
highlight-selected, v0.11.2
js-hyperclick, v1.4.2
language-babel, v2.20.10
language-ini, v1.16.0
language-javascript-jsx, v0.3.7
language-ocaml, v1.1.2
language-thrift, v1.0.2
linter, v1.11.4
linter-eslint, v7.2.2
linter-flow-plus, v3.1.0
minimap, v4.23.5
nuclide, v0.136.0
react, v0.15.0
react-es6-snippets, v0.3.0
react-redux-atom-snippets, v0.1.1
react-snippets, v0.4.2
redux-snippets, v0.2.2
source-preview-react, v0.2.0
tool-bar, v0.4.0

# Dev
No dev packages
juanmirocks commented 8 years ago

+1

shushz commented 8 years ago

Nuclide has recently changed its module loading logic to make it load faster. Unfortunately it doesn't always play nicely with Atom's cache. Could you please reload Atom and see whether this persists?

juanmirocks commented 8 years ago

Seems to work indeed. I forced to clean the cache with atom --safe

shushz commented 8 years ago

@rrawla Do you still see the issue after a reload?

shushz commented 8 years ago

Closing...