creativetimofficial / ct-argon-dashboard-pro-react

12 stars 7 forks source link

[Bug] React version issues #60

Open LauraLeGoff opened 4 months ago

LauraLeGoff commented 4 months ago

Version

1.2.5

Reproduction link

http://www.noadress.com

Operating System

Ubuntu 22.04

Device

Asus Vivobook

Browser & Version

Firefox for ubuntu 123.0

Steps to reproduce

  1. Download files.
  2. Unzip files
  3. Open folder with Visual Studio Code
  4. Open terminal
  5. npm install

    What is expected?

    I was expecting for the node_mules to be installed without errors

    What is actually happening?

    I get an error concerning dependencies: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: argon-dashboard-pro-react@1.2.5 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.3.0" from react-bootstrap-table-next@4.0.3 npm ERR! node_modules/react-bootstrap-table-next npm ERR! react-bootstrap-table-next@"4.0.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/me/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/me/.npm/_logs/2024-04-29T14_05_03_842Z-debug-0.log


Solution

I ran npm install --legacy-peer-deps and it worked, but I get many warnings when running npm start. For example: WARNING in ./node_modules/react-bootstrap-sweetalert/dist/styles/SweetAlertStyles.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/home/me/Documents/MyProject/node_modules/react-bootstrap-sweetalert/src/styles/SweetAlertStyles.ts' file: Error: ENOENT: no such file or directory, open '/home/me/Documents/MyProject/node_modules/react-bootstrap-sweetalert/src/styles/SweetAlertStyles.ts'

Additional comments