Add Spacecraft view as panel in a package


Following the documentation of the View class I am trying to add a view to a panel for a package

spc= new Spacecraft()
atom.workspace.addRightPanel(item: spc, visible: true)

I get the error "View is not defined"
Should I import space-pen package? or include in package.json?


The View class isn’t intended to be used outside of atom-space-pen-views. You shouldn’t be instantiating it directly.