Open dmigra0 opened 1 month ago
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.
Hi, thanks for your answer. I am using nx and vite bundler with set up peerDependecies there's quite a lot of moving parts.
cmd: npm ls bunshi
returns the following: app@0.1.0 ├┬ lib1@0.1.11 │└─ bunshi@2.1.5 deduped ├┬ lib2@0.0.4 │└── bunshi@2.1.5 deduped └─ bunshi@2.1.5
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: