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

Usage with Typescript #41

Open
undsoft opened this issue Mar 28, 2019 · 0 comments
Open

Usage with Typescript #41

undsoft opened this issue Mar 28, 2019 · 0 comments

Comments

@undsoft
Copy link

undsoft commented Mar 28, 2019

Hi, I've been trying to use the library in Typescript with no luck.

Since the library has no typings, I've declared my own module:
declare module 'mobx-delorean';

but when running I get this:

Uncaught TypeError: Cannot read property 'action' of undefined
    at eval (utils.js:82)
    at Object.../../../node_modules/mobx-delorean/lib/utils.js (main.js:10269)
    at __webpack_require__ (main.js:724)
    at fn (main.js:101)
    at eval (spy.js:14)
    at Object.../../../node_modules/mobx-delorean/lib/spy.js (main.js:10209)
    at __webpack_require__ (main.js:724)
    at fn (main.js:101)
    at eval (dev.js:11)
    at Object.../../../node_modules/mobx-delorean/lib/dev.js (main.js:10149)

Any suggestions on how I can make it work with Typescript?

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