Open Akshola00 opened 1 week ago
@Akshola00 Thank you for reporting the Issue Can you Share more details the err logs and on dev server locally it works fine ?
hi firstly when i try to install this library on a nextjs typescript project it shows :
so because of this I either have to use --legacy-peer-deps
or --force
to instal it
and anytime I use ny of this when i host it on a platform like vercel i happen to have issues:
full error details below:
[11:55:26.797] Running build in Washington, D.C., USA (East) – iad1
[11:55:26.892] Cloning github.com/Akshola00/animated-bg-example (Branch: main, Commit: f5268c0)
[11:55:27.227] Cloning completed: 333.982ms
[11:55:27.242] Previous build cache not available
[11:55:27.478] Running "vercel build"
[11:55:27.893] Vercel CLI 38.0.0
[11:55:28.245] Installing dependencies...
[11:55:29.473] npm error code ERESOLVE
[11:55:29.474] npm error ERESOLVE could not resolve
[11:55:29.474] npm error
[11:55:29.474] npm error While resolving: animated-backgrounds@1.0.11
[11:55:29.474] npm error Found: react@19.0.0-rc-66855b96-20241106
[11:55:29.474] npm error node_modules/react
[11:55:29.474] npm error react@"19.0.0-rc-66855b96-20241106" from the root project
[11:55:29.474] npm error peer react@"^18.2.0 || 19.0.0-rc-66855b96-20241106" from next@15.0.3
[11:55:29.474] npm error node_modules/next
[11:55:29.474] npm error next@"15.0.3" from the root project
[11:55:29.474] npm error 2 more (react-dom, styled-jsx)
[11:55:29.474] npm error
[11:55:29.475] npm error Could not resolve dependency:
[11:55:29.475] npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from animated-backgrounds@1.0.11
[11:55:29.475] npm error node_modules/animated-backgrounds
[11:55:29.475] npm error animated-backgrounds@"^1.0.11" from the root project
[11:55:29.475] npm error
[11:55:29.475] npm error Conflicting peer dependency: react@18.3.1
[11:55:29.475] npm error node_modules/react
[11:55:29.475] npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from animated-backgrounds@1.0.11
[11:55:29.475] npm error node_modules/animated-backgrounds
[11:55:29.475] npm error animated-backgrounds@"^1.0.11" from the root project
[11:55:29.475] npm error
[11:55:29.475] npm error Fix the upstream dependency conflict, or retry
[11:55:29.475] npm error this command with --force or --legacy-peer-deps
[11:55:29.475] npm error to accept an incorrect (and potentially broken) dependency resolution.
[11:55:29.475] npm error
[11:55:29.475] npm error
[11:55:29.476] npm error For a full report see:
[11:55:29.476] npm error /vercel/.npm/_logs/2024-11-13T10_55_28_348Z-eresolve-report.txt
[11:55:29.476] npm error A complete log of this run can be found in: /vercel/.npm/_logs/2024-11-13T10_55_28_348Z-debug-0.log
[11:55:29.490] Error: Command "npm install" exited with 1
[11:55:29.660]
so just checked it out and turns out it works on react typescript fine when installing I didn't try to deploying
@umerfarok i hope this helps
@Akshola00
Thank you for more details
will be resolved in next update
Looking forward to it
@Akshola00 this is resolved in version [1.0.12]
@Akshola00 this is resolved in version
[1.0.12]
Niceee Will try it out
this is great @umerfarok will try to host it and get back to you can I have your x handle and Telegram username to contact you?
@Akshola00 you can have that from my github profile it is added there
nice library but the node modules seem to be out of date on my nextjs 14 project
when I install it and try to host on vercel it becomes and issue