dry-scarletD
Refine2y ago
4 replies
dry-scarlet

Error during build

Using NX + Refine + Chakra, my app builds locally but not in CI (BitBucket). I get the following error:

vite v5.2.8 building for production...
transforming...
✓ 4 modules transformed.
x Build failed in 728ms
error during build:
Error: [vite]: Rollup failed to resolve import "@refinedev/chakra-ui" from "/opt/atlassian/pipelines/agent/build/apps/tfh-crm/src/app/App.tsx".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
Was this page helpful?