Compatibility between ES6 and atom-space-pen-views


#1

This gives an exception:
TypeError: Cannot read property ‘apply’ of undefined at Function. (space-pen/lib/space-pen.js:156:30)

class MyView extends View {
  constructor() {
    super();
  }
  content() {}
}

#2

Anyone? This bug excludes the possibility of creating atom package with ES6


#3

Maybe you should use etch as it will most likely be used by the core packages in future.


#4

This bug excludes the possibility of creating Atom packages using ES6 and atom-space-pen-views. But if you look there are already Atom packages using ES6, they just don’t use atom-space-pen-views.


#5

Since atom package is moving towards ES6 as default option now. Is there any updates on this?


#6

I’m not sure what you’re asking for updates on?


#7

Is there any way using atom-space-pen-views with ES6 now?


#8

No, no new work is being done on atom-space-pen-views.


#9

@leedohm, to your knowledge, has there been any dev-side movement on the matter of selecting a new default view framework?


#10

There has been investigation here and there. Nothing has been decided yet.


#11

It works when content() is a static function

class MyView extends View {
  constructor() {
    super();
  }
  static content() {}
}

Custom form in views with babel
#12

I was looking for some package using atom-select-list and that’s perfect!