Fran
Fran
KPCKevin Powell - Community
Created by Fran on 8/9/2024 in #back-end
better_sqlite3.nodewas compiled against a different Node.js version
Hey, I'm going through a react udemy course by Maximilian SchwarzmΓΌller. In NextJs section, he is using Better-Sqlite3 to make a database for a project. I tried copying what he showed as it is but i'm getting an error and their support is non-existent on udemy and discord, can you help with it He wrote a initdb.js file to make that database intialize, but when i use node initdb.js to run it, i get an error
Error: The ..\node_modules\better-sqlite3\build\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 111. This version of Node.js requires
NODE_MODULE_VERSION 127.
Error: The ..\node_modules\better-sqlite3\build\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 111. This version of Node.js requires
NODE_MODULE_VERSION 127.
I reinstalled node_module after deleting, reinstalled better-sqlite3 package, reinstalled node from node website, still error is same. when i run nvm current or node -v it returns v22.6.0 I uninstalled previous Node installs before installing, there's a only one node installed on my pc.
1 replies
KPCKevin Powell - Community
Created by Fran on 5/18/2023 in #back-end
Any good course for learning Drupal?
Hey, Can you guys recommend any decent Drupal course for Absolute Beginner Free or paid, ok with both Edit: And PHP πŸ˜›
2 replies
KPCKevin Powell - Community
Created by Fran on 3/10/2023 in #front-end
How to give colour to Radio input circle when unchecked?
5 replies
KPCKevin Powell - Community
Created by Fran on 2/9/2023 in #back-end
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
Was working on a small blog type website in free time, heard MongoDB is decent for storing text content. Looked into it, went through CRUD and everything. When finally used it, ran into this error. I'm trying to store article content (title, date, author, body, img urls etc..) as json on atlas and using nth child to use it on webpage. When i use fetch in my js file to get data from the link i got from mongoDB connect page, it returns this error 'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at mongodb+srv://user:**passwordhere*@cluster0.hpg7xhg.mongodb.net/article?retryWrites=true&w=majority. (Reason: CORS request not http)' what to do
4 replies
KPCKevin Powell - Community
Created by Fran on 12/14/2022 in #front-end
Shorthand for JavaScript Background styling?
I really suck at googling keywords. Anyone knows what's syntax of this part document.getElementbyId("id_name").style.background= " >this< "
7 replies