-
Notifications
You must be signed in to change notification settings - Fork 3k
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
RollupJS error on file util/isArrayLike.js #2403
Comments
So this seems like but it brings curiousity if it doesn't work with any other codes like this - @noemi-salaun , would you able to try out cjs equivalent such as const isArrayLike = ((x) => x && typeof x.length === 'number'); and given |
util/isArrayLike
I tried with isArrayLike.js looking like : "use strict";
exports.isArrayLike = ((x) => x && typeof x.length === 'number');
//# sourceMappingURL=isArrayLike.js.map but it's the same error
But it seems that So I tried without parenthesis : "use strict";
exports.isArrayLike = (x) => x && typeof x.length === 'number';
//# sourceMappingURL=isArrayLike.js.map It works but
|
Hm, seems my PR is premature and probably won't work as workaround. I'm feeling this is more like rollup side issues, since given module is simple function export and should be able to be consumed. Does rollup confirms it's expected behavior on rollup side? If not, I'd like to suggest check with rollup as well. I assume given error can be reproducible without depends on Rx. |
Hm no, I didn't check with rollup people. I will ask them to see if the issue come from there side. Thank you for the fast reply 😄 |
Hu, someone already takes care of it. |
@noemi-salaun Cool. Let me close this issue for now, feel freely reopen once rollup clarifies if it isn't related with rollup's behavior but need RxJS side code changes. |
This is not a rollup bug, but rxjs. Reverting to version 5.1.1 of rxjs fixes it, since 5.2.0 the problem exists. If you remove the round brackets, it's also fine. Right now this issue is closed, as well as the rollup issue (#168). I suggest this is fixed in rxjs, please re-open the issue and remove the round brackets in isArrayLike function. |
There isn't the issue with rxjs 5.1.1 because there isn't the file |
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. |
RxJS version:
5.2.0
Code to reproduce:
Run RollupJS in a project that uses RxJS.
Use rollup plugin
rollup-plugin-commonjs
with configExpected behavior:
Bundling with RollupJS should work
Actual behavior:
Additional information:
Just removing the parenthesis works for me.
Replace :
with :
The text was updated successfully, but these errors were encountered: