gandm / language-babel

ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
https://atom.io/packages/language-babel
MIT License
476 stars 83 forks source link

Uncaught TypeError: Cannot read property 'code' of undefined #533

Closed cnjimbo closed 4 years ago

cnjimbo commented 4 years ago

[Enter steps to reproduce:] I've read the #6503 but the issue is still here. and I found it is not same as that one

  1. ...
  2. ...

Atom: 1.45.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: language-babel package 2.85.0

Stack Trace

Uncaught TypeError: Cannot read property 'code' of undefined

At C:\Users\tangj15\.atom\packages\language-babel\lib\transpiler.coffee:215

TypeError: Cannot read property 'code' of undefined
    at /packages/language-babel/lib/transpiler.coffee:215:65
    at ~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:43875
    at ~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:43716
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1214120)
    at Emitter.emit (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1215561)
    at ChildProcess.<anonymous> (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:42817)
    at ChildProcess.emit (events.js:182:13)
    at emit (internal/child_process.js:812:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Commands

  3x -9:59.2.0 core:save (input.hidden-input)
     -8:57.7.0 find-and-replace:show (input.hidden-input)
  2x -8:54.4.0 core:confirm (input.hidden-input)
  3x -8:53.1.0 core:backspace (input.hidden-input)
  5x -8:51.6.0 core:confirm (input.hidden-input)
     -8:39.9.0 find-and-replace:show (input.hidden-input)
  7x -8:38.8.0 core:confirm (input.hidden-input)
     -7:27.1.0 find-and-replace:show (input.hidden-input)
  4x -7:25.8.0 core:confirm (input.hidden-input)
     -6:16.9.0 find-and-replace:show (input.hidden-input)
     -6:14 core:paste (input.hidden-input)
     -6:13.2.0 core:confirm (input.hidden-input)
     -5:50.1.0 application:open-folder (button.btn.btn-all)
  4x -3:34.4.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-atom-dark-ui.find-visible)

Non-Core Packages

atom-beautify 0.33.4 
atom-ide-ui 0.13.0 
atom-ide-vue 1.3.1 
atom-live-server-plus 3.0.1 
atom-math 0.0.9 
atom-select-npm-install 1.0.2 
atom-ternjs 0.20.0 
atom-typescript 13.5.0 
autocomplete-modules 2.3.0 
autocomplete-paths 2.12.2 
console-log 1.10.0 
debug 0.0.1 
docblockr 0.13.7 
emmet 2.4.3 
file-icons 2.1.40 
git-control 0.9.0 
git-log 0.4.1 
git-plus 8.7.1 
hey-pane 1.2.0 
highlight-selected 0.17.0 
Hydrogen 2.14.1 
hyperclick 0.0.0 
ide-css 0.3.4 
ide-html 0.6.0 
ide-json 0.2.1 
ide-typescript 0.9.1 
ide-vue 0.1.9 
ide-yaml 0.7.0 
js-refactor 0.8.1 
js-refactor-atom 0.10.1 
language-babel 2.85.0 
language-diff 0.7.0 
language-postcss 1.3.1 
linter 2.3.1 
minimap 4.29.9 
minimap-highlight-selected 4.6.1 
npm-outdated 0.6.0 
npm-plus 0.4.0 
open-in-atom-pkg 1.0.1 
pigments 0.40.2 
prettier-atom 0.58.2 
pretty-json 2.1.2 
quick-log 0.3.1 
regex-railroad-diagram 0.19.4 
script 3.25.0 
scroll-sync 0.2.4 
scroll-through-time 0.3.1 
set-syntax 0.4.0 
sort-lines 0.19.0 
sync-settings 4.3.2 
tab-foldername-index 3.3.1 
toggle-quotes 1.1.4 
tree-view-copy-relative-path 1.2.0 
tree-view-git-status 1.5.3 
vue-fmt 0.1.1 
vue-template-beautify 0.1.2 
cnjimbo commented 4 years ago

same to #521