question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mobx 5.8.0 build error, downgrade to 5.7.0 fixed my problem

See original GitHub issue

I have an issue: Mobx 5.8.0 Build Error

../../node_modules/mobx/lib/api/flow.d.ts:9:62 - error TS2370: A rest parameter must be of an array type.
export declare function flow<T, U extends any[]>(generator: (...args: U) => FlowIterator<any>): (...args: U) => CancellablePromise<T>;

image

Downgrade to 5.7.0 fix my problem.

Hope to fixed this problem;

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
nhsiehgitcommented, Dec 26, 2018

Hi there, I’ve just recently come across this issue as well. So looks like the solution here is to upgrade TS to 3?

should this change have been a minor version bump then? (fwiw upgrading to TS3 has caused me no issues, but just seems weird that a minor bump would require a major version update of another package)

1reaction
mweststratecommented, Dec 27, 2018

That is a good question, semver doesn’t really capture changes in tool or peer dependencies. So in the MobX repositories for now we followed the most common best practice used by other TypeScript based projects: a minor update (there are no breaking api’s, semantics or migration guides, but a peer dependency upgrade (in this case TS) is required, as stated in the changelog)

Op wo 26 dec. 2018 om 21:41 schreef Nathan Hsieh notifications@github.com:

So looks like the solution here is to upgrade TS to 3?

should this change have been a minor version bump then?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mobxjs/mobx/issues/1843#issuecomment-450023373, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvGhJYuIPwDnkk8lfbWa0wSVQlfxSZtks5u898LgaJpZM4ZRH5q .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >
Package Diff: mobx @ 5.8.0 .. 5.9.4
Visual diff of the npm package 'mobx' comparing 5.8.0 with 5.9.4.
Read more >
Alternatives and detailed information of React Storefront
Fix regression where fromOrigin routes fail during local development with the message: "Error: fromOrigin is only supported when running in the Moovweb XDN....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found