Skip to content
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

android 7.0.0, build error: Cannot find module '../cordova/platform_metadata' #13735

Closed
sid-ihycq opened this issue Dec 29, 2017 · 6 comments
Closed
Labels
needs: reply the issue needs a response from the user

Comments

@sid-ihycq
Copy link

sid-ihycq commented Dec 29, 2017

since i remove(v6.3.0) and add android again(lastest v7.0.0), i got this error when build the app:

(node:17320) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module '../cordova/platform_metadata'
(node:17320) [DEP0018] 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.

@mhartington
Copy link
Contributor

Hi there! Are you using the cordova-plugin-ionic, The Ionic Pro plugin?

@kensodemann kensodemann added the needs: reply the issue needs a response from the user label Jan 3, 2018
@mburger81
Copy link
Contributor

Now the default cordova-android is in version 7.0.0 and there are many plugins which does not work with this version of corova-android.
For example the plugin cordova-plugin-fcm still does not work, and cordova-sqlite-storage was resolved this morning and does work now.
See this issues for example
storesafe/cordova-sqlite-storage#729 (comment)
fechanique/cordova-plugin-fcm#435
fechanique/cordova-plugin-fcm#436

The fcm plugin has also a sever error, after installing this you are not able to install other plugins like your ionic-plugin-keyboard. So in this case also the order in config.xml file is important.

IMO for not it is not safe to use android-cordova@7.0.0

Thx

@greendome
Copy link

greendome commented Jan 7, 2018

Hi,

I'm getting the same error...not using the Ionic Pro plugin (I believe) or how can I check if I am?

(node:58064) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module '../cordova/platform_metadata'

Thanks

ps. I have tried removing and re-installing Cordova by:

npm uninstall -g cordova
npm install -g cordova

@greendome
Copy link

I have Ionic plugins installed:

"cordova-plugin-ionic": "^2.0.3"
"cordova-plugin-add-swift-support": "^1.7.0"

but still getting the same issue:
(node:58064) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module '../cordova/platform_metadata'

Any idea what can do to fix this, please?

Many thanks.

@dickverweij
Copy link

I have the same problem

@mhartington
Copy link
Contributor

Please update all of your plugins (remove/add them). This is an issue with a Plugin trying to use a feature that was removed in cordova 8. Plus open issues on the appropriate plugin repo as this is not specifically an ionic issue.

@ionic-team ionic-team locked and limited conversation to collaborators Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: reply the issue needs a response from the user
Projects
None yet
Development

No branches or pull requests

6 participants