See Sanity in action 👀 Join us for a live product demo + Q&A →

Upgrading to Sanity v3 causes "No matching export" error in RxJS

13 replies
Last updated: Mar 15, 2023
Hi folks! I'm currently upgrading from v2 to v3 and when I run "sanity dev" or "npm run dev" i get this message:

node_modules/@sanity/portable-text-editor/lib/index.esm.js:5:16: ERROR: No matching export in "node_modules/rxjs/_esm5/index.js" for import "tap"

As several people already suggested, I've tried deleting my `node_modules`folder and installing again, but it doesn't work.

Anyone else got a solution for this?
Feb 20, 2023, 10:09 AM
Did you also delete your package lock before reinstalling?
Feb 21, 2023, 7:28 PM
+1 , still having this issue, delated the package lock and node_modules, with no luck
Feb 21, 2023, 8:04 PM
when running
sanity dev 

Feb 21, 2023, 8:06 PM
Let me replicate this and see if I can work out a fix. What was the version you were previously on?
Feb 21, 2023, 9:58 PM

Feb 21, 2023, 10:01 PM
Can you give this solution a try in the mean time?
Feb 21, 2023, 10:08 PM
ok, yes, adding rexjs@7.8.0 as a dev dependence gets the studio to work again.
Feb 21, 2023, 11:22 PM
Not ideal but adding that deleting
did the trick for me.
Feb 22, 2023, 6:34 AM
Thanks for the replys. I don't know what triggered it for me, but when I returned to the project to try these solutions it just worked out of the box. Don't know if a restart of the terminal (read: closing VS Code and reopening days later) did the trick, or if it was any of the things I previously tried (deleting node_modules, package-lock etc.) 🤔
Anyways, thanks
Feb 22, 2023, 1:34 PM
Has there been any development with fixing this issue? I can’t get studio to run even after deleting node_modules and package-lock
Mar 15, 2023, 4:57 PM
It seems to be at least somehow related to the
plugin for me, if I remove that, all appears to be working
Mar 15, 2023, 5:05 PM
unfortunately I need it 😛
Mar 15, 2023, 5:05 PM
and suddenly it’s working… 🤷‍♂️
Mar 15, 2023, 5:40 PM – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in