You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project I've had going for a while with a lot of components. I hadn't previously been using the bit tag workflow and instead just using git. This was fine for me as I'm trying to transition an old project into using Bit but now I need to use the build pipeline I can't do this without tagging/snapping.
I'm hitting a few issues when trying to start tagging my components. To try and reduce issues I started by tagging the components with little or no dependencies. This seemed to work fine. As an example I have a core/lib package that just contains type definitions in .ts files.
I can then snap components that are dependent on the core/lib package but when I run bit build I start to get a few errors. With bit build I get the following error:
✖ env: cam-org.cam/envs/react-env-custom@706551995ad73fb60691ec028994b62d62f812e5, task "teambit.compilation/compiler:TypescriptCompile" threw an error
Debug Failure.
If I try bit build <component-pattern> where <component-pattern> doesn't includes the core/lib package I get the following error:
✖ env: cam-org.cam/envs/node-env-custom@fa9a7e940e3c1fe749e659cb961b50f0ba37ccd6, task "teambit.compilation/compiler:TypescriptCompile" threw an error
unable to find component for /home/sam/Library/Caches/Bit/capsules/ad22b43bf6387b1471e6f3c9f991fea1c6460ef5/cam-org.cam_connect-and-flow_core_lib@c1502379973ab40e31b38df86a5e5b038e7364ef
If I try bit build <component-pattern> where <component-pattern> includes the core/lib package I get the following error:
Failed task 1: "teambit.compilation/compiler:TypescriptCompile" of env "cam-org.cam/envs/node-env-custom@fa9a7e940e3c1fe749e659cb961b50f0ba37ccd6"
component: cam-org.cam/connect-and-flow/server/routes/_all@e1ca7f915b0fdd203acbe861ea53f3ef640ab8f6
/home/sam/Library/Caches/Bit/capsules/ad22b43bf6387b1471e6f3c9f991fea1c6460ef5/cam-org.cam_connect-and-flow_server_routes_all@e1ca7f915b0fdd203acbe861ea53f3ef640ab8f6/index.ts:20:14 - error TS2742: The inferred type of 'getRoutes' cannot be named without a reference to '../cam-org.cam_connect-and-flow_server_routes_command_nodes@ec9ceabbd21f774fe7bc6ca3adb7323a4ac716d5/node_modules/@cam-org/cam.connect-and-flow.core.lib/flow-workspace.js'. This is likely not portable. A type annotation is necessary.
I'm closing as this the main error was a component that was not assigned the correct environment. When I then did a bit reset --all and started re tagging it seems to be working fine.
Describe the bug
I'm working on a project I've had going for a while with a lot of components. I hadn't previously been using the bit tag workflow and instead just using git. This was fine for me as I'm trying to transition an old project into using Bit but now I need to use the build pipeline I can't do this without tagging/snapping.
I'm hitting a few issues when trying to start tagging my components. To try and reduce issues I started by tagging the components with little or no dependencies. This seemed to work fine. As an example I have a
core/lib
package that just contains type definitions in.ts
files.I can then snap components that are dependent on the
core/lib
package but when I runbit build
I start to get a few errors. Withbit build
I get the following error:✖ env: cam-org.cam/envs/react-env-custom@706551995ad73fb60691ec028994b62d62f812e5, task "teambit.compilation/compiler:TypescriptCompile" threw an error Debug Failure.
If I try
bit build <component-pattern>
where<component-pattern>
doesn't includes thecore/lib
package I get the following error:If I try
bit build <component-pattern>
where<component-pattern>
includes thecore/lib
package I get the following error:Expected Behavior
Should build the components.
Specifications
1.6.145
v18.19.1
v10.2.1
ubuntu
Envs:
The text was updated successfully, but these errors were encountered: