joschan21 / similarity-api Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.similarityapi.com/
Home Page: https://www.similarityapi.com/
Getting an error while using the latest version of @upstash/redis to create a Redis Client
Downgraded to version 1.20.1
which solved the error
npm install @upstash/[email protected]
or
yarn add @upstash/[email protected]
The current setup of the 'Create API key' route has been setup using the old 'Pages/Api' setup of NextJS. When copying this logic to the new Route Handler logic of NextJS 13, this does no longer work.
I have fixed the issue and refactored the 'Create API Keys' route so that it works with the latest functionality of Route Handlers. This new way of working with the ROUTE handlers also eliminates the need of the 'withMethods' middleware function to limit the HTTP methods that can call the route.
I can create a PR if you want.
Current NextJS version that I am using is: 13.3.1
Hello there,I've got some problems with prisma after trying to sign in.It should redirect me to the /dashboard (http://localhost:3000/dashboard) but instead it redirects to a 404 page with the url of http://localhost:3000/login?callbackUrl=%2Fdashboard&error=Callback even if i have the dashboard page ready up.
Also there is a ton of errors from prisma after the sign in process such as "Invalid prisma.account.findUnique()
invocation: {
where: {
provider_providerAccountId: {
~~~~~~~~~~~~~~~~~~~~~~~~~~
providerAccountId: '....',
provider: 'google'
}
},
select: {
user: true
}
}"
I also tried to change to exact same version of prisma, as the time i was watching the video,prisma have been updated their app and I do not know how to solve this. Thanks!
theme toggle is expanded all the time, styling is kinda messed up aswell (on dark mode), i tried everything copied exact same files, still cant fix
my code https://github.com/Zkirvalidze/similarity_app
Hello! everyone.!!
Please note that the package of refence has many updates, and this tutorial was made using the version: 1.3.5
If you do not use this version, you'll receive and importation error doing the Code.tsx component.
yarn add [email protected]
Hope it helps.
Geetings from Argentina!! ๐
Hey there, really enjoyed the tutorial. I wanted to reach out to see if you had a solution for this. Due to the way we are using dark mode I am consistently getting this error in the console for this app, and can't seem to get rid of it:
Warning: Prop `className` did not match. Server: "bg-white text-slate-900 antialiased __className_0ec1f4 dark" Client: "bg-white text-slate-900 antialiased __className_0ec1f4"
It appears to be the way that maybe next themes (???) is appending 'dark' or 'light' on the server side, but it is not reflecting on the client.. Did you happen to encounter this or find a resolution for it? I have resolved this in another project using the original pages directory by migrating the styles to globals.css and using the @apply
directive, but it cannot appear to work this way for the app directory because I think i'm understanding we are required to use the and tags in layout.tsx
Hi, I'm studying your videos, thanks a lot, but when I started the Code.tsx
part, there is a little doubt that return () => clearInterval(intervalId)
is used as the return value of the callback function for setTimeout. I think it will not work and should it be used as the return value of the useEffect callback function for clearing the memory.
useEffect(() => {
if (show && animated) {
let i = 0
setTimeout(() => {
const intervalId = setInterval(() => {
setText(code.slice(0, i))
i++
if (i > code.length) {
clearInterval(intervalId)
}
}, 15)
return () => clearInterval(intervalId)
}, animationDelay || 150)
}
}, [code, show, animated, animationDelay])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.