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

Cannot generate declarations for mobx and mobx state tree #496

Open
sluramod opened this issue Jul 27, 2022 · 0 comments
Open

Cannot generate declarations for mobx and mobx state tree #496

sluramod opened this issue Jul 27, 2022 · 0 comments

Comments

@sluramod
Copy link

build.gradle.kts:

    implementation(npm("mobx", "6.6.1", generateExternals = true))
    implementation(npm("mobx-state-tree", "5.1.5", generateExternals = true))

output:

> Task :compileKotlinJs FAILED

src/array.module_mobx-state-tree.kt: (18, 20): External type extends non-external type
src/array.module_mobx-state-tree.kt: (18, 47): This type is final, so it cannot be inherited from
src/array.module_mobx-state-tree.kt: (19, 5): 'push' overrides nothing
src/array.module_mobx-state-tree.kt: (20, 5): 'concat' overrides nothing
src/array.module_mobx-state-tree.kt: (22, 5): 'concat' overrides nothing
src/array.module_mobx-state-tree.kt: (22, 51): Unresolved reference: T
src/array.module_mobx-state-tree.kt: (22, 62): Unresolved reference: T
src/array.module_mobx-state-tree.kt: (23, 5): 'concat' overrides nothing
src/array.module_mobx-state-tree.kt: (23, 77): Unresolved reference: T
src/array.module_mobx-state-tree.kt: (24, 5): 'splice' overrides nothing
src/array.module_mobx-state-tree.kt: (25, 5): 'splice' overrides nothing
src/array.module_mobx-state-tree.kt: (26, 5): 'splice' overrides nothing
src/array.module_mobx-state-tree.kt: (27, 5): 'unshift' overrides nothing
src/atom.module_mobx.kt: (18, 28): Unresolved reference: IObservable
src/atom.module_mobx.kt: (24, 5): 'name_' overrides nothing
src/atom.module_mobx.kt: (25, 5): 'isPendingUnobservation_' overrides nothing
src/atom.module_mobx.kt: (26, 5): 'isBeingObserved_' overrides nothing
src/atom.module_mobx.kt: (27, 5): 'observers_' overrides nothing
src/atom.module_mobx.kt: (28, 5): 'diffValue_' overrides nothing
src/atom.module_mobx.kt: (29, 5): 'lastAccessedBy_' overrides nothing
src/atom.module_mobx.kt: (30, 5): 'lowestObserverState_' overrides nothing
src/atom.module_mobx.kt: (31, 5): 'onBOL' overrides nothing
src/atom.module_mobx.kt: (32, 5): 'onBUOL' overrides nothing
src/atom.module_mobx.kt: (33, 5): 'onBO' overrides nothing
src/atom.module_mobx.kt: (34, 5): 'onBUO' overrides nothing
src/become-observed.module_mobx.kt: (17, 38): Unresolved reference: IObservable
src/become-observed.module_mobx.kt: (33, 40): Unresolved reference: IObservable
src/computedvalue.module_mobx.kt: (57, 15): Class 'ComputedValue' is not abstract and does not implement abstract member public abstract var newObserving_: Array<[Error type: Unresolved type for IObservable]>? defined in IDerivation
src/computedvalue.module_mobx.kt: (57, 75): Unresolved reference: IObservable
src/computedvalue.module_mobx.kt: (59, 5): 'observing_' overrides nothing
src/computedvalue.module_mobx.kt: (59, 36): Unresolved reference: IObservable
src/computedvalue.module_mobx.kt: (60, 5): 'isBeingObserved_' overrides nothing
src/computedvalue.module_mobx.kt: (61, 5): 'isPendingUnobservation_' overrides nothing
src/computedvalue.module_mobx.kt: (62, 5): 'observers_' overrides nothing
src/computedvalue.module_mobx.kt: (63, 5): 'diffValue_' overrides nothing
src/computedvalue.module_mobx.kt: (65, 5): 'lastAccessedBy_' overrides nothing
src/computedvalue.module_mobx.kt: (66, 5): 'lowestObserverState_' overrides nothing
src/computedvalue.module_mobx.kt: (69, 5): 'name_' overrides nothing
src/computedvalue.module_mobx.kt: (81, 5): 'onBOL' overrides nothing
src/computedvalue.module_mobx.kt: (82, 5): 'onBUOL' overrides nothing
src/computedvalue.module_mobx.kt: (83, 5): 'onBO' overrides nothing
src/computedvalue.module_mobx.kt: (84, 5): 'onBUO' overrides nothing
src/derivation.module_mobx.kt: (30, 34): Unresolved reference: IDepTreeNode
src/derivation.module_mobx.kt: (31, 30): Unresolved reference: IObservable
src/map.module_mobx-state-tree.kt: (35, 30): Type argument is not within its bounds: should be subtype of 'IAnyType'
src/map.module_mobx-state-tree.kt: (38, 33): Type argument is not within its bounds: should be subtype of 'IAnyType'
src/model.module_mobx-state-tree.kt: (84, 47): Type argument is not within its bounds: should be subtype of 'ModelProperties'
src/model.module_mobx-state-tree.kt: (86, 117): Type argument is not within its bounds: should be subtype of 'ModelProperties'
src/model.module_mobx-state-tree.kt: (88, 82): Type argument is not within its bounds: should be subtype of 'ModelProperties'
src/model.module_mobx-state-tree.kt: (90, 103): Type argument is not within its bounds: should be subtype of 'ModelProperties'
src/model.module_mobx-state-tree.kt: (92, 70): Type argument is not within its bounds: should be subtype of 'ModelProperties'
src/mst-operations.module_mobx-state-tree.kt: (25, 52): Type argument is not within its bounds: should be subtype of 'IAnyType'
src/mst-operations.module_mobx-state-tree.kt: (50, 55): Type argument is not within its bounds: should be subtype of 'IAnyType'
src/mst-operations.module_mobx-state-tree.kt: (52, 53): Type argument is not within its bounds: should be subtype of 'IAnyType'
src/observable.module_mobx.kt: (63, 22): Unresolved reference: T
src/observable.module_mobx.kt: (63, 79): Unresolved reference: T
src/observable.module_mobx.kt: (64, 38): Unresolved reference: T
src/observable.module_mobx.kt: (64, 96): Unresolved reference: T
src/observable.module_mobx.kt: (65, 114): Unresolved reference: T
src/observable.module_mobx.kt: (66, 144): Unresolved reference: K
src/observable.module_mobx.kt: (66, 147): Unresolved reference: V
src/observable.module_mobx.kt: (67, 27): Unresolved reference: T
src/observable.module_mobx.kt: (67, 144): Unresolved reference: T
src/observablemap.module_mobx.kt: (42, 15): Class 'ObservableMap' is not abstract and does not implement abstract member public abstract var size: Number defined in tsstdlib.Map
src/observableobject.module_mobx.kt: (28, 15): Class 'ObservableObjectAdministration' is not abstract and does not implement abstract member public abstract var interceptors_: Array<IInterceptor<dynamic> /* = (change: dynamic) -> dynamic */>? defined in IInterceptable
src/observableobject.module_mobx.kt: (98, 50): Unresolved reference: any
src/observableset.module_mobx.kt: (19, 15): Class 'ObservableSet' is not abstract and does not implement abstract member public abstract fun delete(value: T): Boolean defined in tsstdlib.Set
src/observableset.module_mobx.kt: (36, 5): 'delete' overrides nothing
src/observableset.module_mobx.kt: (37, 5): 'has' overrides nothing
src/observablevalue.module_mobx.kt: (39, 15): Class 'ObservableValue' is not abstract and does not implement abstract member public abstract var interceptors_: Array<IInterceptor<IValueWillChange<T>> /* = (change: IValueWillChange<T>) -> IValueWillChange<T>? */>? defined in IInterceptable
src/observe.module_mobx.kt: (41, 58): Unresolved reference: any
src/observe.module_mobx.kt: (43, 58): Unresolved reference: any
src/reaction.module_mobx.kt: (28, 15): Class 'Reaction' is not abstract and does not implement abstract member public abstract var newObserving_: Array<[Error type: Unresolved type for IObservable]>? defined in IDerivation
src/reaction.module_mobx.kt: (29, 5): 'name_' overrides nothing
src/reaction.module_mobx.kt: (32, 5): 'observing_' overrides nothing
src/reaction.module_mobx.kt: (32, 36): Unresolved reference: IObservable
src/reference.module_mobx-state-tree.kt: (37, 47): Type argument is not within its bounds: should be subtype of 'IAnyStateTreeNode'
src/reference.module_mobx-state-tree.kt: (52, 72): Type argument is not within its bounds: should be subtype of 'IAnyType'
src/type-utils.module_mobx.kt: (17, 73): Unresolved reference: IDepTreeNode
src/type-utils.module_mobx.kt: (19, 35): Unresolved reference: IDepTreeNode
src/type-utils.module_mobx.kt: (21, 73): Unresolved reference: IDepTreeNode
src/type-utils.module_mobx.kt: (23, 70): Unresolved reference: IDepTreeNode
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

1 participant