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

create-react-app is deprecated and has old typescript compatibility #189

Open
sansmoraxz opened this issue May 16, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@sansmoraxz
Copy link

Is your feature request related to a problem? Please describe.

When I use the command to init the project

npx create-react-app my-app --template overwolf-typescript-redux

it results in npm failing to resolve dependencies without the --force flag.

npm ERR! Override for typescript@^5.4.5 conflicts with direct dependency

Describe the solution you'd like
Maybe something like Vite. It can be a possible solution. Not sure if a new repo should be spun up for that.

Describe alternatives you've considered
Manually downgrade typescript then npm run eject to get normal js files. Then upgrade typescript.

@datagrind
Copy link

datagrind commented Jun 6, 2024

After project init, I resolved it in this order:

  • Remove "override: "^5.3.3" from package.json
  • Run the following commands:
  • Update public/manifest.json
    • Change all file properties:
      • - "file": "Files/index.html",
      • + "file": "index.html",
  • Run the following commands:
    • rm -rf node_modules package-lock.json
    • npm install
    • npm run build

@AlbericoD AlbericoD added the enhancement New feature or request label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants