eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 170 forks source link

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

Open otakenz opened 4 years ago

otakenz commented 4 years ago

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

Code snippet

-tabris init (following the simplest tabris app template)

// A minimal, *self-contained* code snippet to reproduce the problem:
mpost commented 4 years ago

What tabris-cli version are you using?

tabris --version

fax1ty commented 4 years ago

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

otakenz commented 4 years ago

What tabris-cli version are you using?

tabris --version

3.2.2

otakenz commented 4 years ago

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

mpost commented 4 years ago

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

otakenz commented 4 years ago

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 commented 4 years ago

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

cookieguru commented 4 years ago

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.

cpetrov commented 4 years ago

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

josiahking commented 4 years ago

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.