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-next-app -example nextjs-with-native-base-typescript complains ERESOLVE unable to resolve dependency tree #4369

Open
sharils opened this issue Dec 2, 2021 · 7 comments
Labels

Comments

@sharils
Copy link

sharils commented Dec 2, 2021

Describe the bug
When I follow Install in Next.js project document and run npx create-next-app -example https://github.com/GeekyAnts/nativebase-templates/tree/master/nextjs-with-native-base-typescript, it complains ERESOLVE unable to resolve dependency tree. I can also replicate with docker node alpine image.

To Reproduce
Steps to reproduce the behaviour:

  1. Run cd /tmp
  2. Run npx create-next-app -example https://github.com/GeekyAnts/nativebase-templates/tree/master/nextjs-with-native-base-typescript
  3. Enter y to Ok to proceed?
  4. Enter cna to What is your project named?

To reproduce with docker:

  1. Run docker run --interactive --rm --tty node:16-alpine sh
  2. Run cd /tmp
  3. Run npx create-next-app -example https://github.com/GeekyAnts/nativebase-templates/tree/master/nextjs-with-native-base-typescript
  4. Enter y to Ok to proceed?
  5. Enter cna to What is your project named?

Expected behaviour
App directory is initialised without any error.

Platform

  • NativeBase version n/a
  • Device: Macbook Air/Docker
  • OS: macOS/alpine
  • Browser n/a
  • Browser version n/a
  • React Native version n/a
  • Expo sdk version n/a
  • node v16.13.0/v16.13.1
  • yarn or npm 8.1.0/8.1.2
@sharils sharils added the v3 V3 label Dec 2, 2021
@Ajamuar
Copy link
Contributor

Ajamuar commented Dec 2, 2021

Hi @sharils, this should not be happening. The same commands seem to work in the non-docker environment. We are taking a look at what may be causing the issue. In the meanwhile, you can clone this repo directly: https://github.com/GeekyAnts/nativebase-templates/tree/master/nextjs-with-native-base-typescript

We'll get back to you as soon as we have more details about this.

You can also look into this StackOverflow answer: https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

@stale
Copy link

stale bot commented Feb 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 2, 2022
@silgal
Copy link

silgal commented Feb 21, 2022

Still doesn't work inside docker, doesn't work outside of docker either.

@stale stale bot removed the stale label Feb 21, 2022
@amars29
Copy link
Contributor

amars29 commented Feb 22, 2022

Hi @silgal, Please run npm config set legacy-peer-deps true in the root directory before running the nextjs script.

@silgal
Copy link

silgal commented Feb 23, 2022

@amars29
Copy link
Contributor

amars29 commented Feb 23, 2022

Hi @silgal, we are resolving the issue with npx. Meanwhile you can use yarn command i.e. yarn create next-app -e https://github.com/GeekyAnts/nativebase-templates/tree/master/nextjs-with-native-base-typescript

@stale
Copy link

stale bot commented Apr 24, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

4 participants