0

I have an Ionic version 1 project and install Ionic version 4 on my linux machine.

When trying to build an Android using ionic build android e get this error message:

Unable to load PlatformApi from platform. Error: Cannot find module '/home/myuser/ionic/myapp/platforms/android/cordova/Api.js'

How can i solve this problem?

1 Answer 1

1

this issue in latest ionic and cordova versions. try to Run following steps

  1. ionic cordova platform rm browser/android/ios
  2. ionic cordova run --emulator
Sign up to request clarification or add additional context in comments.

4 Comments

λ ionic cordova platform rm browser/android/ios > ionic integrations enable cordova [INFO] Downloading integration cordova Error: connect ETIMEDOUT 200.132.18.2:8080 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
Now when i try to run : Ionic build, gives me this error message: Cannot run sass task: missing in gulpfile.js
@ÂngeloRigo look at this solution github.com/ionic-team/ionic-cli/issues/2264
Ionic: ionic (Ionic CLI) : 4.1.2 (C:\Users\myuser\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic1 1.1.0 @ionic/v1-toolkit : 1.0.8 System: NodeJS : v8.10.0 (C:\Program Files\nodejs\node.exe) npm : 6.4.1 OS : Windows 7 Environment: HTTP_PROXY : proxy.mycompany.com:8080 http_proxy : proxy.mycompany.com:8080 HTTPS_PROXY : proxy.mycompany.com:8080 https_proxy : proxy.mycompany.com:8080 IONIC_HTTP_PROXY : proxy.mycompany.com:8080

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.