You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting molecule with custom scope from an npm package (i.e @my_packages/bunshi_test).
In an app that uses the npm package I get the error:
Cannot call use outside of a molecule function
You'll need to provide more details. This could be a side effect of the build system producing a bundled output, so you have two versions of bunshi in your final application.
I got the same error in a Next.js app. It seems to be happening during SSR. I made sure the component using the molecule is not a Server Component, I do have a "use client" directive on top.
When exporting molecule with custom scope from an npm package (i.e @my_packages/bunshi_test).
In an app that uses the npm package I get the error:
Cannot call
use
outside of a molecule functionthe package code (@my_packages/bunshi_test):
test app:
The text was updated successfully, but these errors were encountered: