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

refactor(symbol-observable): upgrade symbol-observable to 1.0.0 #1766

Closed
wants to merge 2 commits into from
Closed

refactor(symbol-observable): upgrade symbol-observable to 1.0.0 #1766

wants to merge 2 commits into from

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Jun 13, 2016

The breaking change in symbol-observable is that it now exports in a standard es module format. So it can be consumed as require('symbol-observable').default or with just import whatever from 'symbol-observable';

@kwonoj
Copy link
Member

kwonoj commented Jun 13, 2016

Seems I can't build passes on local / travis both,

 shx rm -rf ./dist/global && mkdirp ./dist/global && node tools/make-umd-bundle.js && node tools/make-system-bundle.js && npm-run-all build_closure_core

dev died { Error: Error loading "lib/lib" at file:Z:/github/rxjs/dist/lib/lib.js
Error loading "lib/lib" from "rxjs/Rx" at file:Z:/github/rxjs/dist/cjs/Rx.js
ENOENT: no such file or directory, open 'Z:\github\rxjs\dist\lib\lib.js'
    at Error (native)
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'Z:\\github\\rxjs\\dist\\lib\\lib.js' }

@benlesh
Copy link
Member Author

benlesh commented Jun 14, 2016

Looks like an issue with the es:main not importing deeply with the symbol-observable package. This is something @IgorMinar was talking about in another issue. I'm not really sure how to fix this, might need to be fixed in symbol-observable.

@IgorMinar
Copy link
Contributor

there are no deep imports in rxjs code base, so it's something else.

also the error message looks quite bizarre, looking at https://github.com/blesh/symbol-observable it does look like it's resolving symbol-observable to index.js rather than es/index.js. you might need to tweak your system builder configuration to recognize jsnext:main as the primary entry point if you want it to pull in the es version.

@benlesh
Copy link
Member Author

benlesh commented Jun 14, 2016

Yeah, at this point, I'm thoroughly confused by the error message. I guess I'll have to dig in.

@benlesh
Copy link
Member Author

benlesh commented Jun 14, 2016

It's apparently something about symbol-observable where saying module.exports = require('./lib') no longer finds ./lib/index, but instead wants to find ./lib/lib. :\

@benlesh
Copy link
Member Author

benlesh commented Jun 15, 2016

I've updated to 1.0.1, but it seems like the problem still isn't fixed.

@kwonoj
Copy link
Member

kwonoj commented Jun 15, 2016

it seems tries to resolve paths in rx itself directly, /ReactiveX/rxjs/dist/lib/index.js instead of module's paths. :/ weirdo.

@kwonoj
Copy link
Member

kwonoj commented Jun 15, 2016

I've amended builder script bit in #1772 with bump up dependencies, to leverage it as discussion point. It seems updated script resolves symbol-observable successfully.

@benlesh
Copy link
Member Author

benlesh commented Jun 16, 2016

Closed in favor of #1772

@benlesh benlesh closed this Jun 16, 2016
@benlesh benlesh deleted the update-symbol-observable branch December 16, 2016 03:16
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants