I'm new to Prisma and Ts.ED framework, I'm trying to build a simple crud operation using them to understand the flow. I have Prisma installed globally(although, not recommended) and also invoked it globally using this command "prisma". but, when I ran this command
"prisma generate"
I have this error:
Error: Generator at tsed-prisma could not start:
/bin/sh: tsed-prisma: command not found.
The error wasn't there initially but started when I shut down my system. I have deleted the node modules and installed Prisma again, and still, the error persists. Please, I need help to resolve this error. Thank you
Related
Getting this error when run the test using npx wdio command.
How to resolve this issue.
Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return.
The simplest way to get this running is to add typescript and ts-node to the project.
npm i -D typescript ts-node
Then npx wdio
I opted not to use the compiler in a WebdriverIO project but then started getting this error after a few weeks. I just added the libraries above rather than try to chase down the config i likely messed up, in order to eliminate the error message.
After running npx react-native run-android here is the message from terminal:
FAILURE: Build failed with an exception.
Where:
Build file '/Users/vivek/Documents/Code-Here/React-Native/instaClone/android/app/build.gradle' line: 1
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing org.gradle.java.home in gradle.properties.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
Where:
Build file '/Users/vivek/Documents/Code-Here/React-Native/instaClone/android/app/build.gradle' line: 1
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing org.gradle.java.home in gradle.properties.
Be sure to always read the error message carefully, because it will likely tell you what is wrong and how you can fix it!
In this case, the error is telling you that you don't have the correct version of Java installed on your system. Gradle, which React Native uses to create a native Android build, requires Java 11 to be installed on your system, whereas you only have version 1.8.
This means you need to install an up-to-date JDK, which you can do by following the React Native Environment Setup instructions for Android for your specific operation system.
https://github.com/daybrush/scenejs-timeline
I'm want to run or build this react project on my PC but come across a bunch of errors. I thought it should have been since I am novice in reactjs. On the other hand, the author of the project has not replied to my issue yet. I am just wondering if there is someone to check it out and either it runs tells me my probable mistake or just tell me this project has some problems on its own.
I downloaded this project through this command:
git clone git#github.com:daybrush/scenejs-timeline.git
Successfully
I want to run the react-scenejs-timeline project under this folder : “scenejs-timeline\packages\react-scenejs-timeline”
by running these commands
npm install
npm start
but when run npm start
The following address opens in the browser
http://localhost:3000/daybrush/scenejs-timelin
And the below errors are shown in the browser console
Uncaught SyntaxError: Unexpected token '<' => bundle.js:1
Manifest: Line: 1, column: 1, Syntax error. => scenejs-timelin/manifest.json:1
What’s the problem?
So I was trying to create a splash screen in react native.
I followed the following article and after completing all the steps, I cleaned my gradle as well.
https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae
But when I was trying to create the app again after doing the relevant changes. This was the error that was being displayed.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Since I didn't know where I was making the mistake, hence I have linked my Git Repo as well.
https://github.com/SMAmmar14/reactnative
I'm having a problem where I follow the AngularJS tutorial exactly and it gives me errors. Part of the problem is that the tutorial itself is a little ambiguous with what commands you should be running and where. It seems to assume that as a newbie, you're a complete expert already.
THE INSTRUCTION
"Install Node.js
If you want to run the preconfigured local web-server and the test tools then you will also need Node.js v0.10.27+ (yeah totally, that thing... I know exactly what you're talking about and whether I'll need it or not).
You can download a Node.js installer for your operating system from http://nodejs.org/download/.
Check the version of Node.js that you have installed by running the following command:
node --version (got this to work through trial and error. Apparently you have to run this through Git. Node.exe is just a mirage that seems like a program that runs commands and stuff).
Once you have Node.js installed on your machine you can download the tool dependencies by running:
npm install"
Notice how it doesn't tell me whether I'm running this command in Node or windows command prompt or Git. It assumes I'm an expert and totally know what to do through osmosis.
So I run the command in Git...
THE ERROR
~/Desktop/angular-phonecat (master)
$ npm install
module.js:339
throw err;
^
Error: Cannot find module 'C:\c\Chris' Documents\Cash Receipts\previous\node.js\node_modules\npm\bin\npm-cli.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Any idea what to do? Never had so much trouble installing a program in my life. 7 hours and counting.