0

When I try to access my app via the URL in the Tabris.js 2 Developer app, I briefly see the message below, and the app returns me back to the URL screen:

"Could not load boot.min.js or boot.js file from tabris module 'node_modules/tabris'"

I tried running the basic out-of-the-box tabris test app (using tabris init in an empty directory) and the same issue happened, so I am confident that this is not something to do with my app.

Some other details:

  • Using v2.0.0 of tabris.js, although this is happening with 2.0.0-rc2 as well
  • The last time this worked with the same code base for me was prior to my phone (a Nexus 5X) being upgraded to Android Oreo. I wonder if the Tabris.js 2 Developer app has any issues running in Oreo?
  • I know that the http-server is running correctly on my development machine, as I can navigate to http://[development-ip]:8080/package.json and get that file on my mobile device
Nick
  • 1,049
  • 2
  • 8
  • 12
  • Are you certain that you're running the *exact* same version on the JS that your client app is running? I haven't noticed any issues with Oreo, so it's probably not that. – Cookie Guru Sep 21 '17 at 19:43
  • @CookieGuru - do you mean the tabris.js version? How would I confirm which version the developer app is running? – Nick Sep 21 '17 at 23:44
  • Did you run `npm install tabris` in your project? Can you access http://[development-ip]:8080/node_modules/tabris/boot.js? – ralfstx Sep 22 '17 at 07:36
  • @Nick It will be in `package.lock` if you are running NPM >= 5 – Cookie Guru Sep 22 '17 at 07:39
  • Thanks @CookieGuru - your comment made me look into this and I tried v2.1.0 and everything worked nicely. The post below also answers the question for those might be stuck with the same problem. – Nick Sep 22 '17 at 17:42

1 Answers1

1

I can confirm the issue with a project created with the CLI (version 2.0). The latest tabris dev app (2.1) does not work with tabris 2.0. You'd have to upgrade your projct to tabris 2.1:

npm install --save tabris@^2.1.0

The reason is that as of tabris 2.1 a bootstrapping file (boot.js) is now read from the tabris module. This file was included in the dev app before.

When you upgrade tabris-cli to the latest version, projects created with tabris init will not be affected by this problem.

ralfstx
  • 3,893
  • 2
  • 25
  • 41