-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Support for uploading Zapier integrations of type Module #902
Comments
I am also seeing this error whenever I run any zapier CLI commands. Here's the error I'm seeing and some info on my versions and project package.json file: Here's the deprecation warning that appears for every zapier command I enter: $ zapier versions
⠋ Loading versions(node:195258) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Loading versions
... Here's the modules that are using $ npm ls punycode
[email protected] /home/xxx
└─┬ [email protected]
└─┬ [email protected]
├── [email protected]
└─┬ [email protected]
└── [email protected] deduped $ npm --version
10.9.2 $ node --version
v22.12.0 Contents of {
"name": "xxx",
"version": "X.Y.Z",
"description": "xxx",
"homepage": "xxx",
"main": "index.js",
"scripts": {
"predeploy": "zapier test",
"deploy": "zapier push",
"test": "cross-env ZAPIER_KEY=yup ZAPIER_SECRET=S3cr3t! ENCRYPTION_KEY=yakkafoobmog nyc --reporter=lcov --reporter=text-summary mocha \"./{,!(node_modules|__mocks__)/**/}*.spec.js\""
},
"engines": {
"node": ">=12.0.0",
"npm": ">=5.6.0"
},
"dependencies": {
"xxx": "^5.0.0",
"xxx": "^1.3.0",
"dlv": "^1.1.3",
"inso": "^1.0.0",
"thenby": "^1.3.0",
"zapier-platform-cli": "16.0.0",
"zapier-platform-core": "16.0.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
"husky": "^3.0.3",
"lcov-summary": "^1.0.1",
"mocha": "^5.2.0",
"nyc": "^14.1.1",
"prettier": "^1.18.2",
"pretty-quick": "^1.11.1",
"should": "^13.2.0",
"should-sinon": "0.0.6",
"should-spies": "^1.1.0",
"sinon": "^7.4.1"
},
"nyc": {
"all": true,
"include": [
"**/*.js"
],
"exclude": [
"__mocks__",
"node_modules",
"build",
"coverage",
"**/*.spec.js",
"appendCoverageResults.js"
]
},
"husky": {
"hooks": {
"pre-commit": "cross-env ZAPIER_KEY=yup ZAPIER_SECRET=S3cr3t! nyc --reporter=text-summary mocha \"./{,!(node_modules|__mocks__)/**/}*.spec.js\" > coverage/lcov.txt && node appendCoverageResults.js && git add . && pretty-quick --staged && git add ."
}
},
"prettier": {
"singleQuote": true
}
} |
Thanks for reporting! We'll fix these issues with ES modules in v17, which we plan to release in Q1 2025. |
Current Behavior
After running
zapier init --template=typescript zapier-app
, I've modified the following two files:package.json
and
tsconfig.json
When I now run
zapier validate
, I see an error related to running the zapier cli with a project of type module:Other zapier CLI commands result in similar errors.
Desired Behavior / Feature Request
All zapier CLI commands work with projects of type "module".
The text was updated successfully, but these errors were encountered: