Closed Eblancho closed 2 years ago
Hi @Eblancho,
I recently updated rxjs-interop
which is a dependency of a dependency. It looks like the code which uses the ??
operator was introduced here: https://github.com/cartant/rxjs-interop/commit/0e8cee00cc2afd7e3b5411709e8f62d7267479b1#diff-f39eca13cd594ec3ee2066dcd7c03c1e82c9f4d27608c3a538a7a2bbde4651ee.
Can you try configuring babel to transpile the files from within the node_modules
folder (or the node_modules/rxjs-interop
folder), too? As far as I know it will skip 3rd party code by default.
Hi @chrisguttandin,
Thanks for your help, that's exactly the problem.
Indeed it does not transpile the thirds party and I had to add this in my vue.config.js :
"transpileDependencies": [
"rxjs-interop"
],
It works perfectly again.
Thanks again for your help and for your work on this project.
🥳 I'm happy to hear that it works again.
Thanks for reporting your solution. I didn't know about the transpileDependencies
configuration option yet.
Hey am still getting this error in React
./node_modules/rxjs-interop/dist/esm/to-observer.js 14:36
Module parse failed: Unexpected token (14:36)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
| return {
> complete: (observer.complete ?? noop).bind(observer),
| error: (observer.error ?? rethrow).bind(observer),
| next: (observer.next ?? noop).bind(observer)
@dnsking Since your error message looks like it's coming from babel-loader
I would assume Babel itself is not configured to transpile the nullish coalescing operator.
Hello,
I'm not sure if this is the right place to ask the question so don't hesitate.
I've been using your lib for a while without any problems in a view application but recently I updated your lib and I can't build anymore because of this:
I deduce that my project does not support the "??" null coalescing operator.
So I tried to configure babel but without success. Do you think it's a problem related to your lib or only to my code configuration?
P.S : Already try plugins: "@babel/plugin-proposal-nullish-coalescing-operator" and/or "@babel/plugin-syntax-nullish-coalescing-operator"