roblav96 / nativescript-onesignal

A Nativescript plugin that wraps the iOS and Android OneSignal Push Notifications SDK.
https://documentation.onesignal.com/docs/getting-started
Other
24 stars 42 forks source link

Error after update to 1.0.8 #39

Open alexandruantonica opened 6 years ago

alexandruantonica commented 6 years ago

After I update the plugin to 1.0.8 I have this error when I run tns run android. @roblav96 Seems like your postinstall script have some errors.

Error: Cannot find module '/...app_folder/node_modules/postinstall-hooks.js'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
(node:25010) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit

Let me know if you need more info.

jkasten2 commented 6 years ago

@alexandruantonica Can you give this fork a try? https://github.com/OneSignal/nativescript-onesignal

This one has the fork has the install hooks removed so it should get you past this error.

alexandruantonica commented 6 years ago

@jkasten2 How can I install a plugin for Nativescript from Github? I've tried npm i --save OneSignal/nativescript-onesignal but the code is not compiled and I don't have any index.jsand the app throw an error that couldn't find nativescript-onesignal.

Thanks ;)

SalehMahmood commented 6 years ago

Having the same issue

MopheusDG commented 6 years ago

Same here...

uzarsalan commented 5 years ago

Same issue