Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeneratePreview error when I execute 'bit tag' command #5653

Closed
SantoshAccion opened this issue Apr 5, 2022 · 11 comments
Closed

GeneratePreview error when I execute 'bit tag' command #5653

SantoshAccion opened this issue Apr 5, 2022 · 11 comments

Comments

@SantoshAccion
Copy link

SantoshAccion commented Apr 5, 2022

Description

I get the below error when I run bit tag command -

✔ installing dependencies using pnpm
✔ running post install subscribers
✔ linking components
  running build pipe for 1 environments, total 7 tasks
  generated graph for env "teambit.react/react", originalSeedersOfThisEnv: 1, graphOfThisEnv: 1, graph total: 1    
✔ executing pre-build for all tasks
✔ env "teambit.react/react", task "teambit.harmony/aspect:CoreExporter (export all core aspects via the main aspects)" has completed successfully in 7ms
✔ env "teambit.react/react", task "teambit.compilation/compiler:TSCompiler (compile components for artifact dist)" 
has completed successfully in 7s
✔ env "teambit.react/react", task "teambit.defender/tester:TestComponents" has completed successfully in 17ms      
✔ env "teambit.react/react", task "teambit.harmony/application:build_application" has completed successfully in 2ms✔ env "teambit.react/react", task "teambit.pkg/pkg:PreparePackages" has completed successfully in 10ms
✔ env "teambit.react/react", task "teambit.preview/preview:GenerateEnvTemplate" has completed successfully in 9ms  
✖ env: teambit.react/react, task "teambit.preview/preview:GeneratePreview" has failed
✔ executing post-build for all tasks
✖ teambit.pipelines/builder, running build pipe for 1 environments, total 7 tasks (completed in 41s)

The following errors were found while running the build pipeline
Failed task 1: "teambit.preview/preview:GeneratePreview" of env "teambit.react/react"
component: tru-design.components/lab/[email protected]
message: Couldn't find configuration for either precaching or runtime caching. Please ensure that the various glob 
options are set to match one or more files, and/or configure the runtimeCaching option.

Found 1 errors in 1 components


✖ Total 7 tasks. 6 succeeded. 1 failed. 0 skipped. Total errors: 1.

Specifications

-BVM version: 0.0.37

  • Bit version: 0.0.703

Context and additional information

I was suggested to use --force-deploy on the slack channel and that helped me tag the component and export it.
Post this I'm unable to see the preview in my remote scope.
Previously I was on an older version of bit and I tried this again after updating it to the latest version and I still have this issue .
It would be great if you could help with this.

@EmilKidi
Copy link

EmilKidi commented Apr 6, 2022

Seeing the same issue with Bit version: 0.0.703

Downgrading to Bit version: 0.0.697 works

@h3nk42
Copy link

h3nk42 commented Apr 7, 2022

had a similiar thing on 0.0.704 that got fixed by downgrading to 0.0.698

✔ env "aumio.genesis/extensions/[email protected]", task "teambit.defender/tester:TestComponents" has completed successfully in 13ms
✔ env "aumio.genesis/extensions/[email protected]", task "teambit.defender/tester:TestComponents" has completed successfully in 233μs
✔ env "aumio.genesis/extensions/[email protected]", task "teambit.harmony/application:build_application" has completed successfully in 305μs
✔ env "aumio.genesis/extensions/[email protected]", task "teambit.pkg/pkg:PreparePackages" has completed successfully in 5ms
✔ env "aumio.genesis/extensions/[email protected]", task "teambit.preview/preview:GenerateEnvTemplate" has completed successfully in 13ms
Cannot find module 'postcss-loader'
Require stack:
- /Users/neekh/.bvm/versions/0.0.704/bit-0.0.704/node_modules/@teambit/react/dist/webpack/webpack.config.base.js
- /Users/neekh/.bvm/versions/0.0.704/bit-0.0.704/node_modules/@teambit/react/dist/react.env.js
- /Users/neekh/.bvm/versions/0.0.704/bit-0.0.704/node_modules/@teambit/react/dist/react.main.runtime.js
- /Users/neekh/.bvm/versions/0.0.704/bit-0.0.704/node_modules/@teambit/bit/dist/load-bit.js
- /Users/neekh/.bvm/versions/0.0.704/bit-0.0.704/node_modules/@teambit/bit/dist/app.js
- /Users/neekh/.bvm/versions/0.0.704/bit-0.0.704/node_modules/@teambit/bit/bin/bit

@jurredejongh
Copy link

I have the same problem. It has something to do with the Workbox SWA Webpack plugin (https://developer.chrome.com/docs/workbox/modules/workbox-webpack-plugin/).

@justiny
Copy link

justiny commented Apr 21, 2022

This is an issue with our team as well.

@lallmaier
Copy link

lallmaier commented May 24, 2022

Have the same issue, but version 0.0.698 does not work, and neither do versions 0.0.726 and 0.0.740. Please fix this.

@enesozturk
Copy link

enesozturk commented Jun 14, 2022

Same as @h3nk42. Showing the same error about postcss-loader with bit-0.0.762

@FelixBravoBurgos
Copy link

Is there any solution already? We are experience the same issue at my company and we are seriously thinking about leaving the bit set up due to this...

@ashinga48
Copy link

ashinga48 commented Nov 6, 2022

This issue still exists, downgrading to 0.0.655 worked for me

@manipindi
Copy link

how to downgrade bit version

@ashinga48
Copy link

how to downgrade bit version

bvm use 0.0.655

@itaymendel
Copy link
Contributor

we have completely redone the react support.
please use the updated env here - https://bit.cloud/teambit/react/react-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests