question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load PlatformApi from platform. Error: Cannot find module 'q' (tabris build android failed)

See original GitHub issue

Problem description

Unable to locate the underlying problem regarding to this error, whereby a module called ‘q’ could not be found. image

Expected behavior

Expected behavior would be a successful run with android.apk file created

Environment

  • Tabris.js version: ~3.2.1

Code snippet

-tabris init (following the simplest tabris app template)

// A minimal, *self-contained* code snippet to reproduce the problem:

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
josiahkingcommented, Aug 11, 2020

This error has to do with building tabris project from a different drive(disk), other than the installed drive of cli. NOTE: deleting .tabris-cli doesn’t solve the issue but ensuring that both project and cli live in the same disk does.

1reaction
otakenzcommented, Dec 19, 2019

I found out the issue is with nodist path. I decided to switch to nvm-window and now I can successfully run tabris init

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cordova Unable to load platformapi - Stack Overflow
I have been having this issue for few days now. Cordova won't run in browser, error says browser ...
Read more >
unable to load platformapi from platform. error: cannot find ...
unable to load platformapi from platform. error: cannot find module 'properties-parser'. cordova platform add ios [ruby-2.5.1] Using cordova-fetch for ...
Read more >
How To Fix No Command Error In Android Phone - Hekedbay
Unable To Load Platformapi From Platform. Error: Cannot Find Module 'q' (tabris Build Android Failed). Most cell phones these days have ...
Read more >
Unable to load PlatformApi - Builds - Bitrise Discussions
Unable to build Cordova project on ios / android. ... Unable to load PlatformApi from platform. Error: Cannot find module 'unorm'
Read more >
iOS platform upgrade fails - Google Groups
But from my app directory, the iOS platform upgrade fails: home:~/dda/DDFlash 527# phonegap ... Error: Cannot find module 'shelljs'. at Function.Module.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found