How to connect SQLite3 with Electron (Win10) - sqlite

I'm trying to connect my Electron project with SQLite3 but I'm encountering an error that say's
An unhandled error occurred inside electron-rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [E:\Personal_Projects\myquiz\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
I've followed these steps:
1. install electron-rebuild (npm install --save-dev electron-rebuild)
2. install sqlite3 using npm (npm install --save sqlite3)

I've already found the solution just download and install the SDK 8.1 version.

Related

cannot run the flutter app after firebase connection

After i added the GoogleService-Info.plist file to Runner on xcode, I get this error.
(I work on an M1 Chip MacBook Air)
I uninstalled each cocoapods version, and installed again using the ARM version (sudo arch -x86_64 gem install cocoapods).
But nothing changed.
Edit: Just tried the pod install method inside the ios folder and this is what happened;
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "cloud_firestore":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target.
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
you need first to upgrade your package by write "pub upgrade" command
after it try to update podfile as below setups :
inside terminal move to ios folder "cd ios"
enter "pod update" command
if above point not working try "pod install" command
Final edit: I solved it thanks to this issue. The problem was that there's no Podfile.lock in the /ios folder.

How to fix the error: "No Next.js version could be detected in your project." when deploying to Vercel with Turborepo and pnpm

I am trying to deploy the Turborepo example app to Vercel using instructions from here, and getting the error:
Error: No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"
How can I fix it?
Docs says that the build command npm install --prefix=../.. is only required if using npm workspaces, and doesn't apply when using pnpm or yarn workspaces. Since am using pnpm, I replace npm install --prefix=../.. with pnpm i -r and it worked.

updating firebase using expo client

I am working on a react native app, I use firebase, I recently updated expo, and when I use this command expo start, everything works but I get this message on the logs:
Some of your project's dependencies are not compatible with currently installed expo package version:
- firebase - expected version range: 7.9.0 - actual version installed: ^8.2.0 Your project may not work correctly until you install the correct versions of the packages. To install the correct versions of these packages, please run: expo install [package-name ...] Starting Metro Bundler
when use expo install firebase i get the following error:
Installing 1 SDK 37.0.0 compatible native module using Yarn.
> yarn add firebase#7.9.0
'yarnpkg' is not recognized as an internal or external command,
operable program or batch file.
spawn yarnpkg ENOENT
Error: spawn yarnpkg ENOENT
how can I correctly update firebase?
first do
npm install yarn -g
after that is complete
then do
yarn add firebase#7.9.0

SQLite giving weird errors when using with typeorm

this is my error:
DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
at new DriverPackageNotInstalledError (/home/sk0le/projects/authentication/server/src/error/DriverPackageNotInstalledError.ts:8:9)
at SqliteDriver.loadDependencies (/home/sk0le/projects/authentication/server/src/driver/sqlite/SqliteDriver.ts:135:19)
I am using WSL 2.
Sqlite is installed, I checked it. Why is this happening?
I am using TypeORM with typescript to make REST api.

Error when trying to install Bower package in Visual Studio

I'm doing a Pluralsight course(https://www.pluralsight.com/courses/asp-dot-net-core-understanding) and in the first example the teacher tells to install the package "startboostrap-sb-admin-2", that's here: https://github.com/IronSummitMedia/startbootstrap-sb-admin-2.git
I'm trying to install it in Visual Studio 2015 like he says, but I get this error in the console:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\Bower.cmd" install startbootstrap-sb-admin-2#1.0.8 --force-latest --save
bower startbootstrap-sb-admin-2#1.0.8 not-cached https://github.com/IronSummitMedia/startbootstrap-sb-admin-2.git#1.0.8
bower startbootstrap-sb-admin-2#1.0.8 resolve https://github.com/IronSummitMedia/startbootstrap-sb-admin-2.git#1.0.8
bower startbootstrap-sb-admin-2#1.0.8 ENORESTARGET No tag found that was able to satisfy 1.0.8
Additional error details:
No versions found in https://github.com/IronSummitMedia/startbootstrap-sb-admin-2.git
I never worked with Bower before, so I'm a litte lost here.
Any ideas?
Thanks.
I installed bower yesterday and the step is as follow:
Download and install Node.js
Install Bower (npm install -g bower)
bower install vss-web-extension-sdk
Good luck for your install.
So I looked up in the repository and saw this issue: https://github.com/ironsummitmedia/startbootstrap-sb-admin-2/issues/1
Apparently Bower support is broken for this repo, that's why I'm getting this error.
The solution for now is to add this to my bower.json:
"dependencies": { "startbootstrap-sb-admin-2": "https://github.com/BlackrockDigital/startbootstrap-sb-admin-2.git#master" }

Resources