standardnotes / component-relay

A bridge that handles communication between Standard Notes and an external extension.
https://docs.standardnotes.com/extensions/components
GNU Affero General Public License v3.0
12 stars 5 forks source link

Cannot read property 'environment' of undefined with latest commit. #1

Closed ryanpcmcquen closed 6 years ago

ryanpcmcquen commented 6 years ago

I'm using the latest commit in my Org mode extension and getting the following error: https://cdn.rawgit.com/sn-extensions/components-api/b4d88cec7642266ddba8e7e9477ab21f9bd6d23b/dist/dist.js

Uncaught TypeError: Cannot read property 'environment' of undefined
    at ComponentManager.onReady (dist.js:88)
    at ComponentManager.handleMessage (dist.js:35)
    at ComponentManager.<anonymous> (dist.js:25)
moughxyz commented 6 years ago

Sorry..I would use an earlier version. The latest commits are made for use in app version 2.1, which is still under development.

ryanpcmcquen commented 6 years ago

@mobitar, which is the right 'version'? I tried some earlier commits but they were having the same issue.

moughxyz commented 6 years ago

Try 1.0.18

ryanpcmcquen commented 6 years ago

For reference, that would be this: https://cdn.rawgit.com/sn-extensions/components-api/ab04ea47dcff97a01c536b4552756de2f672890a/dist/dist.js

ryanpcmcquen commented 6 years ago

That is working, would you mind updating this issue when I can upgrade to the latest commit?

moughxyz commented 6 years ago

Will do!

On Jan 23, 2018, at 3:34 PM, Ryan P.C. McQuen notifications@github.com wrote:

That is working, would you mind updating this issue when I can upgrade to the latest commit?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sn-extensions/components-api/issues/1#issuecomment-359938380, or mute the thread https://github.com/notifications/unsubscribe-auth/ADIEFMvJYVhCDY1j4no_izGKkvEfjMBqks5tNlB6gaJpZM4Rp3Dh .

ryanpcmcquen commented 6 years ago

@mobitar, is this stable again?

moughxyz commented 6 years ago

Yup, with SN >= 2.1

ryanpcmcquen commented 6 years ago

Do you think following master would be OK?

moughxyz commented 6 years ago

Yup should be ok