-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Build fail: "Error: invalid data, chunk must be a string or buffer, not object" #349
Comments
Hi, After launching following to have more details: Logs are:
After commenting line 44 in /Users/koko/Documents/MyProject/plugins/cordova-plugin-firebase/scripts/after_prepare.js:
This line was added here: 9eecdf9#diff-72a71e008be841d1434336ffb4cd13dc by @erikdju The 'add platform' comand succeed buy not sure that everything will working well now... |
After what @jurevert said. What I realize is (in my case at least) -> Inside platforms/ios/" + name + "/Resources folder there isn't another Resources folder. I create the folder and the after_prepare.js runs normally (whithout comment the code). |
Adding the extra "Resources" folder in my platforms/ios/+ name +/Resources folder worked! Thanks @dobbinx3 & @jurevert! |
Confirming the extra "Resources" folder on the ios platform folder fixes the issue. |
hi all, i have the same issue, but i find a bug in after_prepare (46) 👍 |
@mobicraft-am I don't know if the newest versions of cordova create this second Resources folder. But in my pull request #351 I verify if the folder is there, and if there isn't, I create it. But it would be nice to know if this second Resources folder is really necessary. |
With the latest cordova, this second Resources folder don’t exist.
All is running like a charm on my ionic3 project if a remove this line and of course i don’t create this second Resources folder … ;)
… Le 28 juil. 2017 à 15:16, Dobbin ***@***.***> a écrit :
@mobicraft-am <https://github.com/mobicraft-am> I don't know if the newest versions of cordova create this second Resources folder. But in my pull request #351 <#351> I verify if the folder is there, and if there isn't, I create it. But it would be nice to know if this second Resources folder is really necessary.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#349 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ASvttWHtCs3NVTS9O7NYnJvCmH8_djvqks5sSd8ngaJpZM4OWCc4>.
|
We should ask @erikdju Why did you create the code to copy the .plist file to this second Resources folder? |
I resolve same problem removing from project name non-Latin characters var name = getValue(config, "name") |
@asmgit use 0.1.23 version This bug is fixed on it. |
I use 0.1.23 version |
In my case, adding the res directory solved the problem. I was dealing with Android, not IOS. |
@rpcarnell It seems there is no |
@darshantejani007 Instead of copying |
I've been trying to integrate this plugin via ionic-native as per the instructions on https://ionicframework.com/docs/native/firebase/. However, when I build the project, it fails with the following terminal output:
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build ios (exit code 1):
jon-bongato:fbtest jbongato$ (node:11653) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed
(node:11653) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I've been trying to set this up on a blank project, and even downloaded the appropriate GoogleService-Info.plist and google-services.json files into the project root folder. Has anybody encountered this issue before?
The text was updated successfully, but these errors were encountered: