You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when attempting to build the auto-generated app, the following error is thrown (see the attached image)
Starfyre version: 0.21.0
Steps to reproduce it:
Clean install v0.21.0 via pip
Execute starfyre --create="starfyre", which generates a default app
Without making any adjustments or changes to the generated code, navigate to the created folder and from it run python3 -m starfyre --build --path="."
The issue is related to the piece of code shown in the picture below.
For the autogenerated application, in dist_builder.py, line 144, the value of data["js_modules"] is ['is_even'].
But then, there is an attempt to retrieve a value from this list by a key of type string: url = data["js_modules"][js_module] , where js_module value is 'is_even' on the first (and in this case - only) iteration of the loop.
Hence, the error - Indices of lists cannot be str.
It seems that toml.load() returns data in a different format than is expected.
line 137, data = toml.load(f)
The text was updated successfully, but these errors were encountered:
Currently, when attempting to build the auto-generated app, the following error is thrown (see the attached image)
Starfyre version: 0.21.0
Steps to reproduce it:
starfyre --create="starfyre"
, which generates a default apppython3 -m starfyre --build --path="."
The issue is related to the piece of code shown in the picture below.
For the autogenerated application, in dist_builder.py, line 144, the value of data["js_modules"] is ['is_even'].
But then, there is an attempt to retrieve a value from this list by a key of type string:
url = data["js_modules"][js_module]
, where js_module value is 'is_even' on the first (and in this case - only) iteration of the loop.Hence, the error - Indices of lists cannot be str.
It seems that toml.load() returns data in a different format than is expected.
line 137,
data = toml.load(f)
The text was updated successfully, but these errors were encountered: