How to build moralis-web3-user-demo


In this example, when I run npm start, I get this error, how can I fix it?
PS E:\web\moralis\demo1> npm -v
8.7.0
PS E:\web\moralis\demo1> node -v
v16.14.2
++++++++++++++++++++++++++++++++++
PS E:\web\moralis\demo1> npm install

up to date, audited 2580 packages in 9s
215 packages are looking for funding
run npm fund for details
34 vulnerabilities (1 low, 11 moderate, 20 high, 2 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details.

++++++++++++++++++++++++++++++++
PS E:\web\moralis\demo1> npm start
error info:
Compiled with warnings.

./node_modules/magic-sdk/dist/es/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

./node_modules/magic-sdk/dist/es/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Did you install the dependencies with npm install

yes PS E:\web\moralis\demo1> npm install

For this try installing magic sdk using this npm install magic-sdk and then try npm start.

I followed what you said, but there is still an error I can’t open the page
http://localhost:3000/

To address issues that do not require attention, run:
Compiled with warnings.

./node_modules/magic-sdk/dist/es/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

./node_modules/magic-sdk/dist/es/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

what version of magic-sdk did you install?

I think that it works with version 7 of magic-idk