Giter VIP home page Giter VIP logo

Comments (4)

AmoDinho avatar AmoDinho commented on May 24, 2024 5

In your index.js file add the following:

require('dotenv').config({ path: '.env' });

from react-fullstack-graphql.

MaxHogervorst avatar MaxHogervorst commented on May 24, 2024 2

any updates on this?

from react-fullstack-graphql.

Gomah avatar Gomah commented on May 24, 2024

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.

gHashTag avatar gHashTag commented on May 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.