-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid arguments - $platformsData #65
Comments
I am having this exact same issue. Kindly help pls. |
That hook needs to be rewritten a little for NativeScript 6. See this doc. There are loads of examples (other plugins) around, so if anyone wants to submit a PR that would be great! |
@EddyVerbruggen I have just modified the hooks and am getting |
I just tried the apporoach in issue #35 and i got this [19-10-02 17:50:19.369] (CLI) ERROR in ../node_modules/readable-stream/lib/_stream_readable.js @EddyVerbruggen Kindly assist |
I've updated patch-platforms.js for NS6 :
But I have same issues as you : ERROR in ../node_modules/readable-stream/lib/_stream_readable.js I found a hack but it will modify your YOUR_PROJECT_ROOT/node_modules and I'm not sure that in the spirit of webpack. In patch-platforms.js remplace : Then in my project, I just want to nodeify the module 'aws-sdk' so instead to have a blacklist in patch-npm-packages.js I have a whitelist which modify just the modules that I want : Delete : I can build and push my app on android/ios phone and everything seems to work. |
I am trying to get nativescript-nodeify working for aws-amplify and I am hitting the same issue discussed here. How do I debug this further? @EddyVerbruggen any help would be appreciated. My change is breathing here - nirmay@01ebf17 |
Continuing going down that rabbit hole. Another problem is that prior to NS6, you had a different workflow where all the content of My first try will be to do the replacement directly in the |
The cleanest way for this to work would probably be to add it as a webpack-plugin. But that seems like a big rewrite, which I'm not eager to do... |
So for me currently this means:
|
I managed to get tweetnacl.js working in tns6. It only needed crypto.getRandomValues() to be implemented and i shimmed it using webpack: https://stackoverflow.com/questions/53172766/how-to-use-ripple-lib-with-nativescript/53925032#53925032 |
I'm trying to use Forge in the native script project and in a regular way it does not work, so I decided to use this module to make it work. And now I m getting this error:
hooks\after-prepare\nativescript-nodeify.js will NOT be executed because it has invalid arguments - $platformsData.
it seems in the patch-platforms.js file it can not recognise this argument.
The text was updated successfully, but these errors were encountered: