Could not find react-redux context value; -GitHub Repo issue

@stevepiercy @ksuess . I have followed the exact documentation for the volto repository , but when I am running the script.pnpm build:registry && pnpm --filter @plone/volto start Its starting Volto on server-3000 and showing this .. Am I supposed to change this file ? And how to even tackle this error

  1. It is not necessary to @ users. This is a community forum.
  2. Why should I not upload images of code/data/errors? - Meta Stack Overflow
  3. Provide a link to the documentation that you followed. There is a lot of documentation in the Volto repo.
  4. Provide sufficient information for anyone to reproduce the issue.
  5. It is best to follow recommended installation instructions in the official documentation: Install Plone from its packages โ€“ Install โ€” Plone Documentation v6.0

Sorry, Will take care from next time,Install Volto for development in the following link
https://6.docs.plone.org/volto/contributing/index.html#install-volto-for-development
I am running the command yarn and its showing YN0001: โ”‚ Error: tsconfig@workspace:*: Workspace not found (tsconfig@workspace:*)

Steps to reproduce:

  • fork volto repo,git clone, cd volto ,make start docker , and finally run yarn , it shows error

I don't understand that why its happening,
I completed by Volto-handOn training following the document https://training.plone.org/voltohandson/index.html, and I was able to run volto and complete the entire training module. Is there a way to fix this ,really need to commit some changes and raise PR as I have got my Contributor Licence.

This is a known Volto documentation issue since April 2022. :scream:

Because you want to develop in Volto core, I would suggest you follow this documentation instead: Develop Volto core โ€“ Frontend โ€“ Contributing to Volto โ€” Plone Documentation v6.0

Hey, Thanks , It worked quite well ,and I went through the entire document-

VOLTO CORE

you provided, learned new things , but while I want commits those changes to GitHub ,it saying

Preparing lint-staged...
โš  Running tasks for staged files...
  โฏ .lintstagedrc โ€” 27 files
    โฏ **/*.{js,jsx,ts,tsx} โ€” 9 files
      โœ– pnpm eslint --max-warnings=0 --fix [FAILED]
      โ—ผ pnpm prettier --single-quote --write
    โฏ packages/volto/src/**/*.{jsx, tsx} โ€” 7 files
      โœ– pnpm i18n [KILLED]
    โ†“ **/*.{css,less,scss} โ€” no files
    โ†“ packages/volto/**/*.overrides โ€” no files
โ†“ Skipped because of errors from tasks.
โœ” Reverting to original state because of errors...
โœ” Cleaning up temporary files...

โœ– pnpm eslint --max-warnings=0 --fix:
ESLint found too many warnings (maximum: 0).

/Users/ujjwalsinha/volto/packages/volto/src/components/index.js
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/Schema.js
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/data.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/data.test.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/edit.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/edit.test.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/view.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/view.test.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

/Users/ujjwalsinha/volto/packages/volto/src/config/Blocks.jsx
  0:0  warning  File ignored because of a matching ignore pattern. Use "--no-ignore" to override

โœ– 9 problems (0 errors, 9 warnings)


โœ– pnpm i18n:

> plone-frontend@ i18n /Users/ujjwalsinha/volto
> turbo run i18n --filter @plone/volto "/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/data.jsx" "/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/data.test.jsx" "/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/edit.jsx" "/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/edit.test.jsx" "/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/view.jsx" "/Users/ujjwalsinha/volto/packages/volto/src/components/manage/Blocks/Announce/view.test.jsx" "/Users/ujjwalsinha/volto/packages/volto/src/config/Blocks.jsx"

 ELIFECYCLE  Command failed.
 ELIFECYCLE  Command failed with exit code 1.
husky - pre-commit hook exited with code 1 (error)
```.      Can help with this? Reffered to lot of resources , bit still couldn't

Before you make any commits, can you run all make commands for tests on your checkout? Thus you can eliminate your changes to code as a possible cause for the issue. I'm curious if there is something missing from your environment or something in Volto itself that causes the issue.

1 Like

I think @sneridagh found the same issue, and created a pull request to resolve it. I am reviewing Fixed generator ESlint config. Added tests and docs. by sneridagh ยท Pull Request #5530 ยท plone/volto ยท GitHub now. Please follow that pull request and its subsequent release to Volto 18.x, and try upon its release.

The fix in Fixed generator ESlint config. Added tests and docs. by sneridagh ยท Pull Request #5530 ยท plone/volto ยท GitHub is not because of this error.

Please update your branches with main, I updated the lint-staged config early this week:

{
  "packages/!volto/**/*.{js,jsx,ts,tsx}": [
    "pnpm eslint --max-warnings=0 --fix",
    "pnpm prettier --single-quote --write"
  ],
  "packages/volto/**/*.{js,jsx,ts,tsx}": [
    "pnpm --filter @plone/volto lint:husky",
    "pnpm --filter @plone/volto prettier:husky"
  ],
  "packages/volto/src/**/*.{jsx, tsx}": ["pnpm --filter @plone/volto i18n"],
  "**/*.{css,less,scss}": ["pnpm stylelint --fix"],
  "packages/volto/**/*.overrides": ["pnpm stylelint --fix"]
}

I can see in your error that your config is not updated.

Also, we are improving the config every day, others can do as well... and propose better config for this feature if it's not optimal.

Thank you, it worked :slightly_smiling_face: