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

Dependencies are deprecated. Needs to be updated. #11

Open
goel27 opened this issue Apr 17, 2022 · 8 comments
Open

Dependencies are deprecated. Needs to be updated. #11

goel27 opened this issue Apr 17, 2022 · 8 comments

Comments

@goel27
Copy link

goel27 commented Apr 17, 2022

Error while following readme steps :
"Root-level dependencies and scripts keys in template.json were deprecated for Create React App 5.
This template needs to be updated to use the new package key."

Kindly resolve it. In the meantime, can anyone suggest some workaround?

@harry-rana176
Copy link

Hey @goel27, Please check package.json file into your local project. If it is not updated then you have to copy package.json into https://github.com/Polygon-Academy/starter-kits and then after run code npm i. A problem is solved for me.

Thanks,

@samuelwaskow
Copy link

Is someone looking into this? I followed the instructions to run the project but it isn't finding the react dependencies. Even after running npm i.

Screen Shot 2022-08-24 at 14 59 17

@jb3rndt
Copy link

jb3rndt commented Nov 28, 2022

The issue still persists. @samuelwaskow did you find a solution? Or do you know something @EchoLavender @Rahat-ch?

@pablojordandlf
Copy link

Hey! I'm getting a bunch of errors when trying to initialize the react app too. any solution?

@pablojordandlf
Copy link

just after posting my pervious comment I did what @harry-rana176 mentioned, and it works perfectly for me. Thanks!

@mworks-proj
Copy link

Hey @goel27, Please check package.json file into your local project. If it is not updated then you have to copy package.json into https://github.com/Polygon-Academy/starter-kits and then after run code npm i. A problem is solved for me.

Thanks,

  1. After trying npm i - and running npm start--the following occured:

Starting the development server...

Error: error:0308010C:digital envelope routines::unsupported

throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],

library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'

  1. used openssl-legacy

export NODE_OPTIONS=--openssl-legacy-provider

** more errors :**

Line 21: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 22: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 23: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 24: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 25: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 26: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 27: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 28: 'React' must be in scope when using JSX react/react-in-jsx-scope
Line 31: 'React' must be in scope when using JSX react/react-in-jsx-scope

  1. added import react syntax in yourprojectname/src/app.js
    https://ibb.co/7gjphCg

then got this error

./src/App.js
Module not found: Can't resolve '@ethersproject/providers' in 'projectname/src'

  1. added eth/providers to my local package. at this point i realized that i was in too deep to turn back. leggo! (i used info from {https://yarnpkg.com/package/@ethersproject/providers} to determine which files were needed)

yarn add @ethersproject/providers

COMPILED SUCCESSFULLY!

"Life begins where fear ends." ~some coder

@ldupisani
Copy link

The problem is still around. Copied the package.json and package-lock.json from the repo. Ran "npm ci", and the app started running.

@ldupisani
Copy link

Maybe a side node... I got the starter kit through npx, so maybe it's referencing an old version?

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

No branches or pull requests

7 participants