tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

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

Open otakenz opened this issue 5 years ago • 10 comments

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:

otakenz avatar Dec 17 '19 06:12 otakenz

What tabris-cli version are you using?

tabris --version

mpost avatar Dec 17 '19 11:12 mpost

I had same problem. Problem in different disc letters. You should install node and tabris on same disc

fax1ty avatar Dec 17 '19 14:12 fax1ty

What tabris-cli version are you using?

tabris --version

3.2.2

otakenz avatar Dec 18 '19 01:12 otakenz

I had same problem. Problem in different disc letters. You should install node and tabris on same disc I am still encountering the "q module not found" issue after I have uninstalled node from D: and installed it on C: program folder. image

The location and versions of Node and Tabris is as shown: image

After migrating my node and tabris-cli over to disk C, I have also encountered another issue regarding "tabris init" whereby the error message is shown below. image

otakenz avatar Dec 18 '19 02:12 otakenz

I am not sure how that problem came to be. Could you try deleting your .tabris-cli folder in your user home?

mpost avatar Dec 18 '19 10:12 mpost

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

otakenz avatar Dec 19 '19 08:12 otakenz

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:

The issue is not yet solved, while this time when i tried to build again, it showed more detailed messages. Perhaps it could shed some light to people out there to figure out what might be the problem. image

otakenz avatar Dec 20 '19 15:12 otakenz

Did you try this?

I am not sure how that problem came to be. Could you try deleting your .tabris-cli folder in your user home?

This error appears to be that the platform didn't download, extract, or is somehow otherwise corrupt.

cookieguru avatar Dec 24 '19 09:12 cookieguru

Please reopen in case you still have this issue with latest Tabris.js.

cpetrov avatar May 20 '20 16:05 cpetrov

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.

josiahking avatar Aug 11 '20 22:08 josiahking