Comments (4)
In your index.js
file add the following:
require('dotenv').config({ path: '.env' });
from react-fullstack-graphql.
any updates on this?
from react-fullstack-graphql.
From [email protected], npm ships with npx package which lets you run commands from a local node_modules/.bin
or from a central cache.
Try:
"start": "nodemon -e js,graphql -x node -r dotenv/config --exec npx babel-node src/index.js"
from react-fullstack-graphql.
@Gomah
why mistake?
$ nodemon -e js,graphql -x node -r dotenv/config --exec npx babel-node src/index.js
[nodemon] 1.17.5
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `npx -r dotenv/config babel-node src/index.js`
Server is running on http://localhost:4000
Error: No Prisma endpoint found. Please provide the `endpoint` constructor option.
at new Prisma (/Users/xyz/iYOGi/prisma/server/node_modules/prisma-binding/src/Prisma.ts:37:13)
at GraphQLServer.context (/Users/xyz/iYOGi/prisma/server/src/index.js:10:9)
at GraphQLServer.<anonymous> (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:403:30)
at step (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:40:23)
at Object.next (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:21:53)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:15:71
at new Promise (<anonymous>)
at __awaiter (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:11:12)
at SubscriptionServer.onOperation (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:386:59)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/node_modules/subscriptions-transport-ws/src/server.ts:322:53
Error: No Prisma endpoint found. Please provide the `endpoint` constructor option.
at new Prisma (/Users/xyz/iYOGi/prisma/server/node_modules/prisma-binding/src/Prisma.ts:37:13)
at GraphQLServer.context (/Users/xyz/iYOGi/prisma/server/src/index.js:10:9)
at GraphQLServer.<anonymous> (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:403:30)
at step (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:40:23)
at Object.next (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:21:53)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:15:71
at new Promise (<anonymous>)
at __awaiter (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:11:12)
at SubscriptionServer.onOperation (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:386:59)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/node_modules/subscriptions-transport-ws/src/server.ts:322:53
Error: No Prisma endpoint found. Please provide the `endpoint` constructor option.
at new Prisma (/Users/xyz/iYOGi/prisma/server/node_modules/prisma-binding/src/Prisma.ts:37:13)
at GraphQLServer.context (/Users/xyz/iYOGi/prisma/server/src/index.js:10:9)
at GraphQLServer.<anonymous> (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:403:30)
at step (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:40:23)
at Object.next (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:21:53)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:15:71
at new Promise (<anonymous>)
at __awaiter (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:11:12)
at SubscriptionServer.onOperation (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:386:59)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/node_modules/subscriptions-transport-ws/src/server.ts:322:53
Error: No Prisma endpoint found. Please provide the `endpoint` constructor option.
at new Prisma (/Users/xyz/iYOGi/prisma/server/node_modules/prisma-binding/src/Prisma.ts:37:13)
at GraphQLServer.context (/Users/xyz/iYOGi/prisma/server/src/index.js:10:9)
at GraphQLServer.<anonymous> (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:403:30)
at step (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:40:23)
at Object.next (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:21:53)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:15:71
at new Promise (<anonymous>)
at __awaiter (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/dist/index.js:11:12)
at SubscriptionServer.onOperation (/Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/src/index.ts:386:59)
at /Users/xyz/iYOGi/prisma/server/node_modules/graphql-yoga/node_modules/subscriptions-transport-ws/src/server.ts:322:53
from react-fullstack-graphql.
Related Issues (20)
- A valid environment variable to satisfy the declaration 'env:PRISMA_ENDPOINT' could not be found. HOT 2
- API of the application schema not returning nested query. HOT 1
- Errors on Start Up HOT 2
- How to query nested arrays?
- 'Create' button not working
- outdated client side
- the link is broken on readme file
- Unknown argument: boilerplate HOT 17
- How to refresh the generated server data HOT 1
- Readme is wrong. There's no such script as `yarn dev` to run the server
- There is no `react-fullstack-advanced` option HOT 5
- There's no such script as `yarn dev` to run the server - fullstack-advanced HOT 1
- TypeError: Only absolute URLs are supported HOT 3
- graphql create my-app --boilerplate react-fullstack-basic command is not working HOT 6
- Unknown argument: boilerplate HOT 2
- Project Not Found 'cluster@default'
- AC3 version?
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-fullstack-graphql.