EFB sample error

Version: 1.0.77.0

Frequency: Consistently

Severity: Blocker

Steps to reproduce:
1.: Build EFB sample 0.9.3
2.: No app shows in EFB
3.: This error shows in Coherent GT debugger:

[Error] AbstractSubscribableArray: error in handler: TypeError: undefined is not an object (evaluating 'app.available.set')
notify (msfssdk-iife.js:14572)
insert (msfssdk-iife.js:27135)
(anonymous function) (PanelUI.js:2115)
promiseReactionJob
2 Likes

still happening in 1.0.84.0 with EFB sample 0.10.1

1 Like

We are roadblocked by this issue as well

1 Like

Hello @MaxHype @FlyingIron_Dan ,

Did you use a Node.js version > v18.0 and NPM > v5.0?

Did you encounter any warnings or errors during both npm install command?

Regards,
Boris

Hi @Boris , thanks for the reply. Yes I can confirm I am using v20 of Node and v10 of NPM. I do not have any errors during NPM install or build.
image

I am also getting lots of errors in Coherent about the atlas app missing dependencies - is this to be expected?

I can see in the MSFS console that the app is being registered, and I can see in Coherent that the TemplateApp is being registered, installed and the constructor called. But it always fails at the set() call.

Here is my full Coherent Log:

The errors all seem to originate in msfssdk-life.js

Yes I confirm same errors in msfssdk-life.js with Node 22.11.0 and npm 10.9.0

Could you uninstall the SDK samples, manually remove the EFB folder in Samples/DevmodeProjects, reinstall the latest version of the sdk samples (0.10.1), and let us know if it’s better?

Regards,
Boris

1 Like

thank you @Boris, finally made it:

  • uninstalled SDK samples and removed EFB folder
  • reinstalled samples 0.10.1
  • rebuilt EFB Template App with Node
  • built package with Project Editor
3 Likes

Thank you for the feedback @MaxHype.

@FlyingIron_Dan , can you confirm that following my post above fixed your issue ?

Regards,
Boris

Thanks @Boris , following your steps also fixed the issue for me. Much appreciated.

2 Likes

Hello together.

Im trying the EFB sample atm, following closely the docu for it on how to load and build the project in the sim.

That would be:

  • copy sample folder to my workspace
  • load project, before going into a flight
  • build the project

This already brings up the first error. The asset and output paths seem to be wrong, it cant find the dist folder in the folder specified (TemplateApp\dist).

Looking at your pic in docu, you have simply “packageSources” in the source. Doing this also briings multiple errors of malformed json files.
Im not experienced enough to figure this out myself, i just know, folling the docu wont work.

Thanks for help, would be appreciated ^^

1.0 SDK*

This is what i get if i do it like you have in the docu picture.


image

your pic

Yes, dist needs to be the source.
See Efb app development process optimisation?

1 Like

Thanks. I think that gave other errors, ive tried that already.

A bit sad that this seems to be really complicated workflow. :frowning: Anyway, thank you. I will try more