Closed gtwilliams03 closed 11 months ago
workspace.jsonc peerDependencies:
"peerDependencies": {
"@fortawesome/fontawesome-free": "^6.5.1",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"bootstrap": "^5.3.2",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"moment-timezone": "^0.5.43",
"react": "^18.2.0",
"react-bootstrap": "^2.9.1",
"react-dom": "^18.2.0",
"react-router": "^6.20.1",
"react-router-dom": "^6.20.1"
}
if you have a custom env, please move the peerDeps
to the env.jsonc
of that custom env, this will solve for your problem.
if you don't please create a custom env, move the peerDeps there and set bit env replace ...
to update the envs for your components.
also, once you have your peerdeps properly defined, you can remove them from worksapce.jsonc
.
@itaymendel Thank you very much for your prompt response. Your advice was perfect. I did have a custom env set up already and I moved the peerDependencies out of workspace.jsonc into a new env.jsonc file (policy.peers). Ran bit install and the next build ran fine.
Describe the bug
I can build my component library locally using
bit [tag|snap] --build
and then export to my remote collection without an issue. If I eliminate the--build
flag, the ripple-ci job fails on bit.cloud with a dependency error (ModuleNotFoundError
). This seems to be related to a font-awesome package - but I have the "not found" package listed as a peer dependency - it seems like ripple is not installing the peer dependencies for this package. All others seem to be working. I realize this is a package-specific issue, and very possibly not a bug, but rather a setup issue with my component library, but I cannot seem to get this component to build with ripple.Steps to Reproduce
Expected Behavior
I expected this to build like my other components, but I get a ModuleNotFoundError.
Screenshots, exceptions and logs
Specifications
Additional context
Adding
--build
flag tobit tag
command builds locally just fine and I can export the components from my IDE.