I have a monorepo that supports angular and react components.The relationship is as follows:
We have released two packages, 'uisdk-ng' and 'uisdk-rc'. 'uisdk-ng' depends on 'data-loader' and 'view-loader-ng', while 'uisdk-rc' depends on 'data-loader' and 'view-loader-rc'.view-loader-ng and view-loader-rc are both ui components, and data-loader is a tool library.
The key codes are as follows:
error info:
x Build failed in 476ms
error during build:
src/app/app.tsx (4:9): "dataLoader" is not exported by "../../packages/uisdk-rc/src/index.ts", imported by "src/app/app.tsx".
I know the key reason. data-loader is compiled by vite, which is not compatible with angular's compilation. If data-loader is compiled by tsc, it will succeed.
Current Behavior
I have a monorepo that supports angular and react components.The relationship is as follows: We have released two packages, 'uisdk-ng' and 'uisdk-rc'. 'uisdk-ng' depends on 'data-loader' and 'view-loader-ng', while 'uisdk-rc' depends on 'data-loader' and 'view-loader-rc'.view-loader-ng and view-loader-rc are both ui components, and data-loader is a tool library. The key codes are as follows:
Although the development mode can run, the sdk that only supports one framework can be compiled under the same configuration.
Expected Behavior
Using the same paths configuration, different frameworks can be compiled.
GitHub Repo
No response
Steps to Reproduce
uisdk-ng success, uisdk-rc fail
error info: It looks like all of uisdk-ng's dependencies have not been built yet:
uisdk-ng fail, uisdk-rc success
error info: x Build failed in 476ms error during build: src/app/app.tsx (4:9): "dataLoader" is not exported by "../../packages/uisdk-rc/src/index.ts", imported by "src/app/app.tsx".
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response