Getting validation errors when running Zapier CLI validation command

I keep running into validation issues when I try to run the validation command in my Zapier CLI setup. Everything was working perfectly just a couple days ago but now I’m getting these errors.

Here’s what my package.json looks like:

{
  "name": "webhook-integration-app",
  "version": "1.0.0",
  "description": "A custom webhook integration for Zapier platform",
  "repository": "myorg/zapier-webhook-integration",
  "homepage": "https://example.com/developer",
  "author": "Developer Name <[email protected]>",
  "license": "MIT",
  "main": "app.js",
  "scripts": {
    "test": "./node_modules/.bin/mocha --recursive"
  },
  "engines": {
    "node": "8.10.0",
    "npm": ">=5.6.0"
  },
  "dependencies": {
    "zapier-platform-core": "^7.0.0"
  },
  "devDependencies": {
    "mocha": "^5.2.0",
    "should": "^13.2.0"
  }
}

And my package-lock.json shows these details for the core platform:

"zapier-platform-core": {
  "version": "7.0.0",
  "resolved": "https://registry.npmjs.org/zapier-platform-core/-/zapier-platform-core-7.0.0.tgz",
  "integrity": "sha512-8nJ9xs6Dig1/Hvvpcz3upD0lnPd/gg5YCpum2S5xLnsV5yuQXUcEIXuQq7T5PPksmQgO3ux57szN4EU2+q9RvA==",
  "requires": {
    "bluebird": "3.5.0",
    "content-disposition": "0.5.2",
    "dotenv": "5.0.1",
    "form-data": "2.2.0",
    "lodash": "4.17.10",
    "node-fetch": "1.7.1",
    "zapier-platform-schema": "7.0.0"
  }
}

I tried removing the caret symbol from the version number in dependencies but that just caused different problems. Anyone know what might be causing this validation to fail all of a sudden? What steps should I take to fix this issue?

The Node version mismatch is your problem. You’ve got Node 8.10.0 in package.json, but zapier-platform-core 7.0.0 needs Node 10+. I hit this same issue last year on a webhook project - validation started breaking after updating dependencies even though my code didn’t change. Update the engines field in package.json to match the right Node version, then make sure you’re running that version locally. Also worth checking if zapier-platform-schema got updated recently and added new validation rules.

sounds like u might be on an outdated node version. zapier cli v7 needs at least node 10+. try upgrading to 10.x or higher, that should clear up those validation errors! i had the same issue last month!

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.