-
Notifications
You must be signed in to change notification settings - Fork 189
Typescript definition not exporting properly #89
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
Comments
This comment has been minimized.
This comment has been minimized.
Hi. Could you refer to this code? |
@kaorun343 You're referring to lines 2 and 6 right? Does that test case work? When I Exploring I've made a minimal repo to repro the issue here. I just updated to the latest yarn add rxjs@^6.2.1
yarn add vue@^2.5.2
yarn add vue-router@^3.0.1
yarn add vue-rx@^6.0.0 and made a minimal component to demonstrate vue-rx usage I also tested this out with a fresh JS Vue project with similar settings (just in case this was TS related) but I had the same problem. Unless I've completely missed something, it seems like either (1) |
Open to a PR that fixes the typings :) |
@yyx990803 Well said :) |
The docs mention importing like so
However this yields a TypeScript error:
TS1192: Module '...node_modules/vue-rx/types/index' has no default export
I was able to work around this via
And things seem to be working normally now.
Here's the relevant package versions I'm using:
The text was updated successfully, but these errors were encountered: