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 import @cycle/time/rxjs #861

Open
kiyui opened this issue Dec 4, 2018 · 0 comments
Open

Cannot import @cycle/time/rxjs #861

kiyui opened this issue Dec 4, 2018 · 0 comments

Comments

@kiyui
Copy link

kiyui commented Dec 4, 2018

Importing mockTimeSource from the rxjs variant of @cycle/time throws an error because it is importing an undefined path. I believe this issue is related to #672, as the cause seems to originate from the bundled rxjs.d.ts file wherein certain imports do not point to the ./lib/cjs/src/.. variant.

Code to reproduce the issue:

import { mockTimeSource } from '@cycle/time/rxjs';

Alternatively, the following branch where I am testing on:
kiyui/cycle-rxjs-playground#1

Expected behavior:
Importing mockTimeSource should not result in any errors.

Actual behavior:

  [at-loader] ./node_modules/@cycle/time/rxjs.d.ts:3:42 
      TS2307: Cannot find module './src/types'.

Versions of packages used:
@cycle/time: 0.18.0

Thanks in advance 🙇‍♂️ !

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