Hyper: Extensions that only expose a `decorateBrowserOptions` method throws Plugin error

Created on 20 Oct 2017  路  3Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Ubuntu GNOME 16.04.3
  • Hyper.app version: 2.0.4 (pre-release)
  • Link of a Gist with the contents of your .hyper.js: (only includes a local plugin)
  • Relevant information from devtools no errors in the console
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

When developing a plugin that only exposes a decorateBrowserOptions method, for instance:

exports.decorateBrowserOptions = options => options;

Hyper will throw the following error and prevent the plugin from loading:

Plugin error!
Plugin "plugin name" does not expose any Hyper extension API methods

It is possible to work around the issue by exposing any other API method that does not necessarily have meaningful effects.

Most helpful comment

It's awesome because people like you 馃憡 @UltCombo
Open Source Teamwork 馃挴

All 3 comments

Fix will be available with next canary release, and later in 2.x (stable) 馃憤 Thank you again @UltCombo for taking your time to write this issue and the accompanying fix (PR)! 馃

No problem. 馃槃 Thanks for reviewing so quickly and for the awesome project! 馃弳

It's awesome because people like you 馃憡 @UltCombo
Open Source Teamwork 馃挴

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cooperpellaton picture cooperpellaton  路  3Comments

weabot picture weabot  路  3Comments

dbkaplun picture dbkaplun  路  3Comments

daenuprobst picture daenuprobst  路  3Comments

rauchg picture rauchg  路  3Comments