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 update past 6.10.0 #3845

Closed
mindrunner opened this issue Mar 19, 2024 · 1 comment
Closed

Cannot update past 6.10.0 #3845

mindrunner opened this issue Mar 19, 2024 · 1 comment
Labels

Comments

@mindrunner
Copy link

Intended outcome:
I tying to update the mobx package in a typescript library to its latest version, but I am stuck at 6.10.0. Any greater version (e.g. 6.10.2 or 6.12.0 results in a compilation error.

Actual outcome:

node_modules/mobx/dist/api/annotation.d.ts:11:42 - error TS2304: Cannot find name 'DecoratorContext'.

11     decorate_20223_(value: any, context: DecoratorContext): any;
                                            ~~~~~~~~~~~~~~~~

node_modules/mobx/dist/api/decorators.d.ts:19:68 - error TS2304: Cannot find name 'DecoratorContext'.

19 export declare function is20223Decorator(context: any): context is DecoratorContext;
                                                                      ~~~~~~~~~~~~~~~~

node_modules/mobx/dist/api/decorators.d.ts:20:59 - error TS2304: Cannot find name 'DecoratorContext'.

20 export declare function assert20223DecoratorType(context: DecoratorContext, types: DecoratorContext["kind"][]): void;
                                                             ~~~~~~~~~~~~~~~~

node_modules/mobx/dist/api/decorators.d.ts:20:84 - error TS2304: Cannot find name 'DecoratorContext'.

20 export declare function assert20223DecoratorType(context: DecoratorContext, types: DecoratorContext["kind"][]): void;
                                                                                      ~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:1:71 - error TS2304: Cannot find name 'ClassAccessorDecoratorTarget'.

1 export type ClassAccessorDecorator<This = any, Value = any> = (value: ClassAccessorDecoratorTarget<This, Value>, context: ClassAccessorDecoratorContext) => ClassAccessorDecoratorResult<This, Value> | void;
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:1:123 - error TS2304: Cannot find name 'ClassAccessorDecoratorContext'.

1 export type ClassAccessorDecorator<This = any, Value = any> = (value: ClassAccessorDecoratorTarget<This, Value>, context: ClassAccessorDecoratorContext) => ClassAccessorDecoratorResult<This, Value> | void;
                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:1:157 - error TS2304: Cannot find name 'ClassAccessorDecoratorResult'.

1 export type ClassAccessorDecorator<This = any, Value = any> = (value: ClassAccessorDecoratorTarget<This, Value>, context: ClassAccessorDecoratorContext) => ClassAccessorDecoratorResult<This, Value> | void;
                                                                                                                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:2:101 - error TS2304: Cannot find name 'ClassGetterDecoratorContext'.

2 export type ClassGetterDecorator<This = any, Value = any> = (value: (this: This) => Value, context: ClassGetterDecoratorContext) => ((this: This) => Value) | void;
                                                                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:3:114 - error TS2304: Cannot find name 'ClassSetterDecoratorContext'.

3 export type ClassSetterDecorator<This = any, Value = any> = (value: (this: This, value: Value) => void, context: ClassSetterDecoratorContext) => ((this: This, value: Value) => void) | void;
                                                                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:4:114 - error TS2304: Cannot find name 'ClassMethodDecoratorContext'.

4 export type ClassMethodDecorator<This = any, Value extends (...p: any[]) => any = any> = (value: Value, context: ClassMethodDecoratorContext<This, Value>) => Value | void;
                                                                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/mobx/dist/types/decorator_fills.d.ts:5:113 - error TS2304: Cannot find name 'ClassFieldDecoratorContext'.

5 export type ClassFieldDecorator<This = any, Value extends (...p: any[]) => any = any> = (value: Value, context: ClassFieldDecoratorContext<This, Value>) => Value | void;
                                                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 11 errors in 3 files.

Errors  Files
     1  node_modules/mobx/dist/api/annotation.d.ts:11
     3  node_modules/mobx/dist/api/decorators.d.ts:19
     7  node_modules/mobx/dist/types/decorator_fills.d.ts:1
npm ERR! code 2
npm ERR! path /home/le/src/factory
npm ERR! command failed
npm ERR! command sh -c npm run build

Versions

6.10.2
6.12.0

@mindrunner
Copy link
Author

Updating to latest typescript solved the problem for me. Sorry for the noise :)

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

No branches or pull requests

1 participant