My Code Same:
import {
A
B
C
D
} from './lib/B';
const plugin = {
init: (args: B) => {
ReactDOM.render(
React.createElement(
_A of B:args.A,
_B of B:args.B,
....
)
)
}
}
export { plugin as default, B };
It code in index.ts
and props B
is call from lib C
, and C
it cal from Z
When I run yarn nx --library:build
of nx workspace
I get the following error:
Exported variable 'X' has or is using name 'Y' from external module "../../Z" but cannot be named