camaro: camaro.transform is not a function
I’ve been trying to upgrade camaro on an old app. It’s currently using v1.2.0 and working fine. However, there are quite a lot of vulnerabilities reported by npm, so I’d like to update it.
I’ve already updated some related apps which run on AWS Lambda. I hit issues with v3.0.8 on Lambda, but 3.0.7 is working fine. So I am trying to use the same version for an app that will run on an AWS EC2 linux instance. Locally, it runs on node 8.2.1 on OSX.
When I do a normal install (Locally on OSX): npm i --save camaro@3.0.7 it installs without error, but when it runs, I get this:
(node:97402) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3874): TypeError: camaro.transform is not a function
Error saving fare flow data TypeError: camaro.transform is not a function
at transform (/Users/ianbale/Source Code/data-manager-ftp/node_modules/camaro/index.js:34:25)
I’ve also tried rebuilding camaro as I had to do for v1.2.0:
npm i camaro@3.0.7 --build-from-source --update-binary
But this fails:
285 warn camaro@3.0.7 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
286 verbose stack Error: camaro@3.0.7 install: `node-pre-gyp install --fallback-to-build`
286 verbose stack Exit status 1
286 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
286 verbose stack at emitTwo (events.js:125:13)
286 verbose stack at EventEmitter.emit (events.js:213:7)
286 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
286 verbose stack at emitTwo (events.js:125:13)
286 verbose stack at ChildProcess.emit (events.js:213:7)
286 verbose stack at maybeClose (internal/child_process.js:921:16)
286 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
287 verbose pkgid camaro@3.0.7
288 verbose cwd /Users/ianbale/Source Code/data-manager-ftp
289 verbose Darwin 17.6.0
290 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "camaro@3.0.7" "--build-from-source" "--update-binary"
291 verbose node v8.2.1
292 verbose npm v6.2.0
293 error code ELIFECYCLE
294 error errno 1
295 error camaro@3.0.7 install: `node-pre-gyp install --fallback-to-build`
I’ve also tried simply installing 3.0.7 then overwriting camaro.node with the prebuilt binary camaro-v3.0.7-node-v57-darwin-x64.tar.gz
I get the same runtime error:
(node:97402) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3874): TypeError: camaro.transform is not a function
Error saving fare flow data TypeError: camaro.transform is not a function
at transform (/Users/ianbale/Source Code/data-manager-ftp/node_modules/camaro/index.js:34:25)
Can you offer any insight into why I am having so much difficulty with this version of Camaro?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (9 by maintainers)
My suspicion is that one of my dependencies has a different version to one that either camaro has, or one of its dependencies and the one that gets used is not compatible with camaro. Most likely, I have newer version of something. Would be nice if it gave an actual list of what was updated rather than just a count…
I’ll double check if there is anything in my list that I no longer need (possible as I have reworked this a bit), then go through camaro’s dependencies / dependencies dependencies etc. and see if I can find which one is causing the problem. I’ll let you now what I find.
Thanks for taking the time to look at this for me.