Bashamega / WebDevTools

Web Dev Tools is a comprehensive online platform designed to empower web developers with a wide array of code samples and snippets.
https://wdt.adambashaahmednaji.com/
MIT License
51 stars 57 forks source link

Change the icon for toggle theme #190

Closed HarshitT00 closed 6 months ago

HarshitT00 commented 6 months ago

This pull request addresses issue #173 "The changer icons"

Changes made:

Added moon icon for dark theme Added sun icon for light theme Implemented these icons in the theme changer toggle

This enhancement improves the user interface by providing visual cues for the current theme and the action of changing themes.

Closes #173

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-dev-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 10:33am
HarshitT00 commented 6 months ago

I have made a different folder but again it giving error can you tell me the error

Bashamega commented 6 months ago

Hello:)

This is the problem:

Error: Default export is missing in "/vercel/path0/src/app/components/icon.jsx"
    at 15875 (/vercel/path0/.next/server/app/components/icon/route.js:1:1642)
    at t (/vercel/path0/.next/server/webpack-runtime.js:1:128)
    at n (/vercel/path0/.next/server/app/components/icon/route.js:1:2731)
    at /vercel/path0/.next/server/app/components/icon/route.js:1:2762
    at t.X (/vercel/path0/.next/server/webpack-runtime.js:1:1206)
    at /vercel/path0/.next/server/app/components/icon/route.js:1:2744
    at Object.<anonymous> (/vercel/path0/.next/server/app/components/icon/route.js:1:2790)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
> Build error occurred
Error: Failed to collect page data for /components/icon
    at /vercel/path0/node_modules/next/dist/build/utils.js:1268:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'

Also please don't create a new pr just push a new commit.

HarshitT00 commented 6 months ago

It running well in my local but I don't know why it failing here.

Bashamega commented 6 months ago

@amanr-dev Can you help @HarshitT00 . I am busy with other things

dipanshurdev commented 6 months ago

@amanr-dev Can you help @HarshitT00 . I am busy with other things

Hi @Bashamega, Can you share with me the Error message on Vercel Deployment has failed

Bashamega commented 6 months ago

Hi @Bashamega, Can you share with me the Error message on Vercel Deployment has failed

Okay,


[11:46:28.353] Installing dependencies...
[11:46:36.575] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[11:46:39.082] npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[11:46:39.742] npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
[11:46:41.161] npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
[11:46:41.209] npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
[11:46:41.465] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[11:47:01.155] 
[11:47:01.156] added 630 packages in 33s
[11:47:01.156] 
[11:47:01.156] 158 packages are looking for funding
[11:47:01.157]   run `npm fund` for details
[11:47:01.190] Detected Next.js version: 14.2.5
[11:47:01.194] Detected `package-lock.json` generated by npm 7+
[11:47:01.194] Running "npm run build"
[11:47:01.332] 
[11:47:01.333] > web@0.1.0 build
[11:47:01.333] > next build
[11:47:01.333] 
[11:47:02.450] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[11:47:02.451] This information is used to shape Next.js' roadmap and prioritize features.
[11:47:02.451] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[11:47:02.451] https://nextjs.org/telemetry
[11:47:02.451] 
[11:47:02.515]   ▲ Next.js 14.2.5
[11:47:02.517] 
[11:47:02.593]    Creating an optimized production build ...
[11:47:42.032]  ✓ Compiled successfully
[11:47:42.033]    Linting and checking validity of types ...
[11:47:44.604]    Collecting page data ...
[11:47:45.539] Error: Default export is missing in "/vercel/path0/src/app/components/icon.jsx"
[11:47:45.540]     at 15875 (/vercel/path0/.next/server/app/components/icon/route.js:1:1642)
[11:47:45.540]     at t (/vercel/path0/.next/server/webpack-runtime.js:1:128)
[11:47:45.540]     at n (/vercel/path0/.next/server/app/components/icon/route.js:1:2731)
[11:47:45.540]     at /vercel/path0/.next/server/app/components/icon/route.js:1:2762
[11:47:45.540]     at t.X (/vercel/path0/.next/server/webpack-runtime.js:1:1206)
[11:47:45.540]     at /vercel/path0/.next/server/app/components/icon/route.js:1:2744
[11:47:45.545]     at Object.<anonymous> (/vercel/path0/.next/server/app/components/icon/route.js:1:2790)
[11:47:45.545]     at Module._compile (node:internal/modules/cjs/loader:1358:14)
[11:47:45.545]     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
[11:47:45.545]     at Module.load (node:internal/modules/cjs/loader:1208:32)
[11:47:45.545] 
[11:47:45.545] > Build error occurred
[11:47:45.545] Error: Failed to collect page data for /components/icon
[11:47:45.545]     at /vercel/path0/node_modules/next/dist/build/utils.js:1268:15
[11:47:45.546]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[11:47:45.546]   type: 'Error'
[11:47:45.546] }
[11:47:45.576] Error: Command "npm run build" exited with 1
[11:47:46.132] 
HarshitT00 commented 6 months ago

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/feature/changer-icon:refs/remotes/origin/feature/changer-icon +refs/tags/feature/changer-icon:refs/tags/feature/changer-icon Error: The process '/usr/bin/git' failed with exit code 1

what is this error

Bashamega commented 6 months ago

@amanr-dev Can you fix the gh actions.

Bashamega commented 6 months ago

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/feature/changer-icon:refs/remotes/origin/feature/changer-icon +refs/tags/feature/changer-icon:refs/tags/feature/changer-icon Error: The process '/usr/bin/git' failed with exit code 1

what is this error

I don't know i hope @amanr-dev can solve it

HarshitT00 commented 6 months ago

Yesterday when I made a PR this error was not there but after gh update I am getting this error

Bashamega commented 6 months ago

Yesterday when I made a PR this error was not there but after gh update I am getting this error

Because yesterday your pr was on the main branch not a sub branch like today. But we have to fix it either way. As soon as a we fix the action it will be fixed

dipanshurdev commented 6 months ago

@amanr-dev Can you fix the gh actions?

/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/feature/changer-icon:refs/remotes/origin/feature/changer-icon +refs/tags/feature/changer-icon:refs/tags/feature/changer-icon Error: The process '/usr/bin/git' failed with exit code 1 What is this error

I don't know i hope @amanr-dev can solve it

This is a GitHub workflow error from the format.yml file, trying to find a solution.

HarshitT00 commented 6 months ago

Should I try to make PR by changing code in the main branch of my fork copy?

Bashamega commented 6 months ago

Should I try to make PR by changing code in the main branch of my fork copy?

As a temporary solution yes.