feat(bottom-navbar): add progress bar & docs contentful update#19
Merged
saumyakaran merged 3 commits intodotcodeschool:masterfrom Apr 16, 2025
Merged
Conversation
doc: fix contentful model to used vars in code
|
@andrzejSulkowski is attempting to deploy a commit to the dotcodeschool Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
@andrzejSulkowski this fails to build with the following build logs: [08:02:29.864] Running build in Washington, D.C., USA (East) – iad1
[08:02:29.967] Cloning github.com/dotcodeschool/frontend (Branch: feature/lesson-progress-bar, Commit: 0bafe45)
[08:02:30.240] Cloning completed: 273.000ms
[08:02:34.038] Restored build cache from previous deployment (bYsfTLW5TYGMGWNnYcjpSrJnNQT3)
[08:02:34.106] Running "vercel build"
[08:02:34.558] Vercel CLI 41.2.2
[08:02:34.907] Detected `pnpm-lock.yaml` 9 which may be generated by pnpm@9.x or pnpm@10.x
[08:02:34.907] Using pnpm@9.x based on project creation date
[08:02:34.907] To use pnpm@10.x, manually opt in using corepack (https://vercel.com/docs/deployments/configure-a-build#corepack)
[08:02:34.910] Running "install" command: `pnpm install`...
[08:02:35.487] Lockfile is up to date, resolution step is skipped
[08:02:35.600] Already up to date
[08:02:36.039]
[08:02:36.060] Done in 1.1s
[08:02:36.073] Detected Next.js version: 14.0.3
[08:02:36.074] Running "pnpm build"
[08:02:36.504]
[08:02:36.504] > dotcodeschool@0.1.0 build /vercel/path0
[08:02:36.504] > next build
[08:02:36.505]
[08:02:37.223] ▲ Next.js 14.0.3
[08:02:37.223]
[08:02:37.224] Creating an optimized production build ...
[08:02:46.464] Browserslist: caniuse-lite is outdated. Please run:
[08:02:46.464] npx browserslist@latest --update-db
[08:02:46.465] Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[08:02:50.160] ✓ Compiled successfully
[08:02:50.161] Linting and checking validity of types ...
[08:02:53.106]
[08:02:53.107] ./src/components/lessons-interface/bottom-navbar.tsx
[08:02:53.107] 34:8 Warning: 'ProgressBar' is defined but never used. no-unused-vars
[08:02:53.107]
[08:02:53.107] ./src/components/lessons-interface/editor-tabs.tsx
[08:02:53.107] 28:4 Warning: 'newEditorContent' is defined but never used. no-unused-vars
[08:02:53.107] 41:17 Warning: 'showDiff' is defined but never used. no-unused-vars
[08:02:53.107] 42:17 Warning: 'index' is defined but never used. no-unused-vars
[08:02:53.107]
[08:02:53.107] ./src/pages/courses/[course]/lesson/[lesson]/chapter/[chapter]/index.tsx
[08:02:53.107] 102:48 Warning: 'index' is defined but never used. no-unused-vars
[08:02:53.107]
[08:02:53.107] ./src/utils/index.ts
[08:02:53.107] 36:7 Warning: 'currentFile' is assigned a value but never used. no-unused-vars
[08:02:53.107]
[08:02:53.107] info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[08:02:56.348] Failed to compile.
[08:02:56.349]
[08:02:56.349] ./src/components/lessons-interface/bottom-navbar.tsx:34:25
[08:02:56.349] Type error: Cannot find module '@/components/lessons-interface/progress-bar' or its corresponding type declarations.
[08:02:56.349]
[08:02:56.349] �[0m �[90m 32 |�[39m �[36mimport�[39m axios �[36mfrom�[39m �[32m"axios"�[39m�[33m;�[39m�[0m
[08:02:56.349] �[0m �[90m 33 |�[39m �[36mimport�[39m { useSession } �[36mfrom�[39m �[32m"next-auth/react"�[39m�[33m;�[39m�[0m
[08:02:56.349] �[0m�[31m�[1m>�[22m�[39m�[90m 34 |�[39m �[36mimport�[39m �[33mProgressBar�[39m �[36mfrom�[39m �[32m"@/components/lessons-interface/progress-bar"�[39m�[33m;�[39m�[0m
[08:02:56.349] �[0m �[90m |�[39m �[31m�[1m^�[22m�[39m�[0m
[08:02:56.349] �[0m �[90m 35 |�[39m�[0m
[08:02:56.350] �[0m �[90m 36 |�[39m �[36minterface�[39m �[33mSectionProps�[39m {�[0m
[08:02:56.350] �[0m �[90m 37 |�[39m courseId�[33m:�[39m string�[33m;�[39m�[0m
[08:02:56.447] ELIFECYCLE Command failed with exit code 1.
[08:02:56.463] Error: Command "pnpm build" exited with 1
[08:02:56.818] |
Member
Author
|
Should work now |
saumyakaran
reviewed
Mar 22, 2025
Contributor
|
@andrzejSulkowski do you have a polkadot address? if you do, you could open a small tip request for your contribution here referencing this PR as evidence. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I haven’t added a lot of content to Contentful yet — please test it locally to ensure everything works as expected.
Additionally, I noticed during setup that the described Contentful model didn’t match the variables extracted in the code, so I updated the documentation accordingly.
Cheers 🚀