Code Monkey home page Code Monkey logo

alexandr-g / cra-template-typescript-redux Goto Github PK

View Code? Open in Web Editor NEW
93.0 2.0 22.0 6.15 MB

Unofficial Create React App template with Redux, TypeScript, React Router, React Testing Library and custom ESlint config

Home Page: https://cra-template-typescript-redux.now.sh

License: MIT License

HTML 15.74% TypeScript 67.89% CSS 3.75% JavaScript 12.62%
cra-template redux redux-configuration typescript react create-react-app create-react-app-v2 create-react-app-typescript starter-template starter-kit

cra-template-typescript-redux's People

Contributors

alexandr-g avatar dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cra-template-typescript-redux's Issues

TypeError: Cannot add property noFallthroughCasesInSwitch, object is not extensible

Hi,

I am getting an error after running yarn create react-app your-project-name --template typescript-redux or npx create-react-app your-project-name --template typescript-redux, at the end of the installation shows the error: TypeError: Cannot add property noFallthroughCasesInSwitch, object is not extensible
at verifyTypeScriptSetup (/Volumes/Transcend/Devs/reactjs/your-project-name/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:231:45)
at module.exports (/Volumes/Transcend/Devs/reactjs/your-project-name/node_modules/react-scripts/scripts/init.js:336:5)
at [eval]:3:14
at Script.runInThisContext (vm.js:120:20)
at Object.runInThisContext (vm.js:311:38)
at Object. ([eval]-wrapper:10:26)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at evalScript (internal/process/execution.js:94:25)
at internal/main/eval_string.js:23:3

Hope this info can be helpful to you to fix the issue. Thank you in advance.

Regards,

Thanks!

Thanks for this build!!! Gonna use it to build all my React projects!

Hint: If you could integrate Relay(GraphQL) that would be more than fantastic.

Warning: React does not recognize the `computedMatch` prop on a DOM element.

Warning: React does not recognize the computedMatch prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase computedmatch instead. If you accidentally passed it from a parent component, remove it from the DOM element.
in div (at App.tsx:13)
in Switch (at App.tsx:12)
in Router (created by BrowserRouter)
in BrowserRouter (at App.tsx:10)
in App (at src/index.tsx:12)
in Provider (at src/index.tsx:11)

Browser: Google Chrome/Microsoft Edge

According to the documentation: https://reacttraining.com/react-router/web/api/Switch

All children of a <Switch> should be <Route> or <Redirect> elements. Only the first child to match the current location will be rendered.

It looks like you have a div inside the switch statement.

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Rate Limited

These updates are currently rate limited. Click on a checkbox below to force their creation now.

  • chore(deps): update codecov/codecov-action action to v3
  • chore(deps): update github/codeql-action action to v2
  • fix(deps): update dependency @types/react to v18
  • fix(deps): update dependency @types/react-dom to v18
  • fix(deps): update dependency eslint-config-airbnb-typescript to v17
  • fix(deps): update dependency react-redux to v8
  • fix(deps): update react monorepo to v18 (major) (react, react-dom)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
.github/actions/set-pr-status/Dockerfile
  • node slim
github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v1
  • github/codeql-action v1
  • github/codeql-action v1
.github/workflows/e2e-tests.yml
  • actions/checkout v3
  • actions/checkout v3
.github/workflows/main.yml
  • actions/checkout v3
  • actions/setup-node v2
  • actions/cache v2
  • actions/checkout v3
  • actions/cache v2
  • actions/checkout v3
  • actions/cache v2
  • codecov/codecov-action v1.5.2
  • actions/checkout v3
  • actions/cache v2
  • cycjimmy/semantic-release-action v2.7.0
html
public/index.html
  • materialize 1.0.0
template/public/index.html
  • materialize 1.0.0
npm
.github/actions/set-pr-status/package.json
  • actions-toolkit 6.0.1
package.json
  • @types/enzyme ^3.10.4
  • @types/jest ^27.0.0
  • @types/node ^14.0.0
  • @types/react ^17.0.0
  • @types/react-dom ^17.0.0
  • @types/react-redux ^7.1.5
  • @types/react-router-dom ^5.1.3
  • @types/redux-mock-store ^1.0.1
  • @typescript-eslint/eslint-plugin ^5.0.0
  • @typescript-eslint/parser 5.9.1
  • @wojtekmaj/enzyme-adapter-react-17 ^0.6.0
  • enzyme ^3.11.0
  • eslint ^8.6.0
  • eslint-config-airbnb-typescript ^16.1.0
  • eslint-config-prettier ^8.0.0
  • eslint-plugin-import ^2.22.0
  • eslint-plugin-jsx-a11y ^6.4.1
  • eslint-plugin-prettier ^4.0.0
  • eslint-plugin-react ^7.21.5
  • eslint-plugin-react-hooks ^4.0.8
  • prettier ^2.0.0
  • react ^17.0.0
  • react-dom ^17.0.0
  • react-redux ^7.1.3
  • react-router-dom ^5.1.2
  • react-scripts 5.0.0
  • redux ^4.0.5
  • redux-devtools-extension ^2.13.8
  • redux-mock-store ^1.5.4
  • typescript ~4.5.0
  • @semantic-release/changelog 6.0.1
  • @semantic-release/git 10.0.1
  • @semantic-release/github 8.0.2
  • codecov 3.8.3
  • commitizen 4.2.4
  • cypress 9.4.1
  • cz-conventional-changelog 3.3.0
  • eslint-plugin-cypress 2.12.1
  • semantic-release 18.0.1
  • node >=10
template.json

  • Check this box to trigger a request for Renovate to run again on this repository

Template fails in WSL (Windows Subsytem for Linux)

I tried the template, and it failed on WSL. See log.

npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "cra-template-typescript-redux"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/c/Users/crayf/navico/systembuilder/src/npm-debug.log

It worked on Mac native.
npm-debug.log

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two Factor Authentication for your account, set its level to "Authorization only" in your account settings. semantic-release cannot publish with the default "
Authorization and writes" level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.