Subpath Import Error: @liveblocks/react/suspense failing in Plasmo but works in CRA
Hi Plasmo team,
I'm experiencing a bundling issue with Liveblocks imports in my Plasmo extension after migrating from Create React App.
When importing from:
"@liveblocks/react/suspense":
Uncaught TypeError: (0 , _core.detectDupes) is not a function
at suspense.ts:5:36
at newRequire (popup.7d3dc21e.js:72:24)
Might the error be to do with Parcel's bundled output, specifically in how it's processing the subpath import.
Importing from "@liveblocks/react" (without /suspense) loads the extension but breaks the loading state functionality
The exact same code works perfectly in CRA (which uses Webpack instead of Parcel)
Is there a known issue with how Plasmo/Parcel handles subpath imports like "@liveblocks/react/suspense"?
Are there any specific Plasmo configurations to help with package subpath resolution?
Thanks!0 Replies