Leke
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Leke on 7/18/2023 in #questions
AutoIncrement using mongoose
Please Guys what is the best way to implement AutoIncrement using mongoose, i tried the best two option and it wasnt working
mongoose-sequence
mongoose-auto-increment
3 replies
TTCTheo's Typesafe Cult
•Created by Leke on 6/12/2023 in #questions
Attempted to load @next/swc-darwin-x64
I just created a new nextjs project and the first time i run the dev server i am seeing some errors in the console but the app running and i dont know if this will affect my project, please how do i resolve this issue?
1 replies
TTCTheo's Typesafe Cult
•Created by Leke on 5/29/2023 in #questions
[vite-plugin-sass] Unexpected token u in JSON at position 0 error
I just migrated my react sass application from webpack to Vite but I haven’t been able to build since the migration took place.
The error below is what I encounter
main.scss
3 replies
TTCTheo's Typesafe Cult
•Created by Leke on 3/1/2023 in #questions
node-canvas error
node-canvas error
I tried using
node-canvas
with jsbarcode
to process barcode
from a node
application but node-canvas
seems to be an issue ever since I tried implementing using it.I have tried rebuilding from source yet the error still a blocker.
6 replies
TTCTheo's Typesafe Cult
•Created by Leke on 2/22/2023 in #questions
Build failed due to import error
Build failed due to import error
After running the build command for my react app the build failed and the below is the response I get.
package.json
An ideal on how to resolve this issue will be much appreciated.2 replies
TTCTheo's Typesafe Cult
•Created by Leke on 2/21/2023 in #questions
Auto select country flag when country code is provided
I am building a
React
project
and it is required I implement a functionality
that allow users to provide their phone number in an input tag with the country code
and immediately the country code
is provided then the flag
of the country appears respectively.
Is there a library
I can use to achieve this or an API
?3 replies
TTCTheo's Typesafe Cult
•Created by Leke on 2/8/2023 in #questions
SCSS Error: can not read files in public path
I have an assets folder that contain some other files with images and svgs in it in the public file of my project so...
=>
navbar.scss
...I declared a variable with path below
Error: Module not found: Error: Can't resolve '../../../logos/mobile.jpg’
1 replies
TTCTheo's Typesafe Cult
•Created by Leke on 2/8/2023 in #questions
`Cant install mongodb on mac`
28 replies
TTCTheo's Typesafe Cult
•Created by Leke on 1/31/2023 in #questions
`window.scrollY` error `typescript`
3 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/30/2022 in #questions
How is option value string even after accepting a ``value={prop}`` of a number type?
1 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/27/2022 in #questions
'paginationRange.length' is possibly 'undefined'.ts(18048)
4 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/18/2022 in #questions
can i export data from reactQuery?
13 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/10/2022 in #questions
React + Typescript...Its return type 'Element | undefined' is not a valid JSX element.
27 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/4/2022 in #questions
React Typescript useContext( ) generic type
16 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/4/2022 in #questions
React Typescript custom pageLayout
React Typescript pageLayout
Hi everyone, I'm trying to achieve something and it seems very impossible with React && typescript
. I have an application that has two header(s)
at the top of every page, in this case the Login page takes Header1
and the dashboard page takes Header2
, so the Header(s)
depends on the page routing. Does anyone have an ideal on how to make this work ? I can also share what I have done as well for more clarity. Thank You. I have tried the same thing with just Nextjs
and it worked but Typescript
is making it look so hard.1 replies
TTCTheo's Typesafe Cult
•Created by Leke on 11/3/2022 in #questions
React Typescript SassError Undefined variable
18 replies
TTCTheo's Typesafe Cult
•Created by Leke on 10/26/2022 in #questions
Typescript Property 'pull' does not exist on type 'ObjectId[ ]'
1 replies