Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create ZombieBox Application instance. CLI functionality will be limited #1

Open
karneaud opened this issue Jun 9, 2019 · 2 comments

Comments

@karneaud
Copy link

karneaud commented Jun 9, 2019

I have the following project

{
  "name": "zb-minimal-project",
  "version": "1.0.0",
  "scripts": {
    "start": "zombiebox run",
    "build": "zombiebox build all"
  },
  "dependencies": {
    "sharp": "^0.22.1",
    "zb-utils": "^0.1.8",
    "zombiebox": "^2.0.0-alpha.1",
    "zombiebox-extension-cutejs": "^1.2.0",
    "zombiebox-extension-dependency-injection": "^2.0.0-alpha.1",
    "zombiebox-extension-ui": "^2.0.0-alpha.1",
    "zombiebox-platform-android-tv": "^3.0.0-alpha.1",
    "zombiebox-platform-pc": "^2.0.0-alpha.1"
  }
}

When running the command yarn build without the "zombiebox-platform-android-tv": "^3.0.0-alpha.1" it works as expected. However, running with the android-tv package yields the results

zombiebox run
AbstractExtension {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_codeSource: null,
_cutejs: Engine {
_input: Holder { _variables: {} },
_output: Holder { _variables: {} },
clientLibImportPath: 'cutejs-lib/cute-library',
_analyzer: Analyzer { _holder: [Holder], _preTypes: {}, _preInputType: '' },
_templateHandlers: {
importDependency: [Array],
naming: [Array],
typedef: [Array],
escaper: [Array],
interpolate: [Array],
escape: [Array],
partial: [Array],
inlineComponent: [Array],
component: [Array],
exportNode: [Array],
evaluate: [Array]
},
_escapes: {
'\': '\',
"'": "'",
r: '\r',
n: '\n',
t: '\t',
u2028: '
',
u2029: '
',
'\r': 'r',
'\n': 'n',
'\t': 't',
'
': 'u2028',
'
': 'u2029'
}
}
}
Extension cutejs loaded
Extension {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_codeSource: null
}
Extension dependency-injection loaded
Extension {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_codeSource: null
}
Extension ui loaded
PlatformAndroid {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
CONFIG_REPLACE_PATTERN: '//[FLAVOR_INSERTION_POINT]//'
}
Trying to add not addon: [object Object]
Failed to create ZombieBox Application instance. CLI functionality will be limited
Could not find ZombieBox applicaion
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@l1bbcsg
Copy link
Contributor

l1bbcsg commented Jun 10, 2019

The real error here is "Trying to add not addon: [object Object]" saying ZombieBox can't load one of addons as they're outdated.

It's the problem with current Android TV platform version, it's lagging behind ZombieBox and does not support 2.0.0 yet (you can tell by its peerDependency from zombiebox).
We're still in the process of releasing all of the ZombieBox components for 2.0.0 release, it's just taking some time as there's quite a lot of them.
I'll bump Android TV in priority list and get it out today.

Same issue await you with dependency-injection and we'll have it released soon as well. Other platforms and extension from your list are properly released at 2.0.0

@karneaud
Copy link
Author

karneaud commented Jun 11, 2019

@l1bbcsg

I see. Well I did some tweaks using branch 2.0.0 with some tweaks of branch 3.0.0 and manage to get a modified version zombie-box demo to launch with the following packages

{
  "version": "1.0.0",
  "scripts": {
    "start": "zombiebox run",
    "build": "zombiebox build all"
  },
  "dependencies": {
    "zb-utils": "^0.1.8",
    "zombiebox": "^2.0.0-alpha.1",
    "zombiebox-extension-cutejs": "^1.2.0",
    "zombiebox-extension-dependency-injection": "^2.0.0-alpha.1",
    "zombiebox-extension-ui": "^2.0.0-alpha.1",
    "zombiebox-platform-android-tv": "^2.0.0",
    "zombiebox-platform-pc": "^2.0.0-alpha.1"
  }
}

I'm going through the motions of the framework right now and will post my findings when I am done

cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants