I can’t find the list of nodejs modules available ...
# prisma-whats-new
I can’t find the list of nodejs modules available to a Subscription functions, Does any one know where I can find the list?
@Kyle Jackson have you got uuid in your local package.json file? I'm not sure why but you need your own package.json with your all of your dependencies
PS I'm using uuid so it works
Copy code
"dependencies": {
    "@types/bcryptjs": "^2.4.1",
    "@types/validator": "^6.3.0",
    "Base64": "^1.0.1",
    "bcryptjs": "^2.4.3",
    "form-data": "^2.3.1",
    "graphcool-lib": "^0.1.4",
    "graphql-request": "^1.4.0",
    "isomorphic-fetch": "^2.2.1",
    "moment": "^2.19.1",
    "uuid": "^3.1.0",
    "validator": "^9.0.0"
  "devDependencies": {
    "@types/node": "^8.0.58"
@Kyle Jackson how are you importing uuid? FYI It’s strange as sometimes you need to write import * as moment from 'moment' instead of import moment from 'moment'. The second import works in JS ES6 but not in TypeScript. I think it’s due to some kind of transpiling or lack of on the graphcool backend to TypeScript. you need to use import * as moment from 'moment' on node modules without a default export or you can use require
@max Yes I believe I did I just made my own but I am going to try again current dependencies * "dependencies": { "@slack/client": "^3.14.2", "bcryptjs": "^2.4.3", "form-data": "^2.3.1", "graphcool-lib": "^0.1.0", "graphql-request": "^1.4.0", "mailgun-js": "^0.13.1", "uuid": "^3.1.0", "validator": "^9.1.2" }*
@max Thank you. Yes I am using Typescript
@Kyle Jackson this is how I'm importing uuid
import * as uuidv4 from 'uuid/v4'