Closed span closed 5 years ago
Hey @span,
Your code seems correct, so not sure what is the problem. May be try cleaning your platforms
, node_modules
and deleting the package-lock.json
and try reinstalling all deps and running the app.
If the problem is unresolved, please create a reproducible example on the NativeScript playground.
I have the same problem 😂
I executed $ rm platforms node_modules && yarn && tns debug android --bundle
, but the problem still stayed...
In my opinion, ValueList doesn't have the constructor.
But sorry, I doesn't have a time to make the example :bow: I only report at now.
Perhaps it has to do with #198. If the code expects some default behaviour which is not properly imported.
ValueList
works perfectly fine in the demos attached to this repo.
@PeterStaev maybe the problem is because the imports in drop-down.d.ts
for NativeScript 5.4 are in short mode and from NativeScript 5.2 that is banned
@darkyelox , short imports are not banned. They are depreciated, but still working. You can see my comments in #198 on the short import topic.
I can't figure out how to create a new
ValueList
. Feeling pretty dumb :Ptns version
package.json
Using the example:
The error says "Expected 0 arguments but got 1". Looking at the
ValueList
class it does not contain any such constructor but perhaps it should inherit one fromObservableArray
? Nor do I have access to any of theObservableArray
methods.Am I going crazy here or how can I create a new value list?