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

No documentation, can't build webpack either #1

Open
smangham opened this issue Jun 15, 2022 · 2 comments
Open

No documentation, can't build webpack either #1

smangham opened this issue Jun 15, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@smangham
Copy link

I'm a developer with plenty of Django experience but no React, who was hoping to get started using this example - however, there doesn't seem to be any documentation on how to build it. There's a 97000-line index.js file that looks like it was auto-generated - but no description on how this was done. I'm assuming it's built with webpack, but npm run build dies with a blizzard of errors like

     TS2786: 'Route' cannot be used as a JSX component.
  Its instance type 'Route<{}, string>' is not a valid JSX element.

Which it looks like was part of a breaking change in React.js and the packages in the client module aren't pinned to a working earlier version?

Is there an up-to-date version of this repo, or is using one of the other demo repos a better solution?

@tsv2013
Copy link
Owner

tsv2013 commented Jun 16, 2022

ReactJS dependencies looks ok for me. I'll take a look and write back here.

@tsv2013
Copy link
Owner

tsv2013 commented Jul 12, 2022

I've found the issue. @types/react-redux loads the latest @types/react package (18.0.xx) and it conflicts with referenced @types/react ^17.0.1 version.

I've tried to add package versions override in package.json file, but has no luck

Probably I need to bump react to V18 and it will fix the issue

@tsv2013 tsv2013 added the bug Something isn't working label Jul 12, 2022
@tsv2013 tsv2013 self-assigned this Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants