ar90n / serverless-s3-local

Serverless s3 local plugin.
MIT License
215 stars 70 forks source link

TypeError: Cannot read property 'name' of undefined #294

Closed sonjz closed 3 years ago

sonjz commented 3 years ago

Running this on my mac (intel), using latest serverless installed as global. Here is my dependencies list, should be latest:

yarn list ``` % yarn list --depth 0 yarn list v1.22.10 ├─ @babel/code-frame@7.12.13 ├─ @babel/compat-data@7.14.0 ├─ @babel/core@7.14.3 ├─ @babel/generator@7.14.3 ├─ @babel/helper-annotate-as-pure@7.12.13 ├─ @babel/helper-builder-binary-assignment-operator-visitor@7.12.13 ├─ @babel/helper-compilation-targets@7.13.16 ├─ @babel/helper-create-class-features-plugin@7.13.11 ├─ @babel/helper-create-regexp-features-plugin@7.12.17 ├─ @babel/helper-define-polyfill-provider@0.2.0 ├─ @babel/helper-explode-assignable-expression@7.13.0 ├─ @babel/helper-function-name@7.12.13 ├─ @babel/helper-get-function-arity@7.12.13 ├─ @babel/helper-hoist-variables@7.13.0 ├─ @babel/helper-member-expression-to-functions@7.13.12 ├─ @babel/helper-module-imports@7.13.12 ├─ @babel/helper-module-transforms@7.14.0 ├─ @babel/helper-optimise-call-expression@7.12.13 ├─ @babel/helper-plugin-utils@7.13.0 ├─ @babel/helper-remap-async-to-generator@7.13.0 ├─ @babel/helper-replace-supers@7.13.12 ├─ @babel/helper-simple-access@7.13.12 ├─ @babel/helper-skip-transparent-expression-wrappers@7.12.1 ├─ @babel/helper-split-export-declaration@7.12.13 ├─ @babel/helper-validator-identifier@7.12.11 ├─ @babel/helper-validator-option@7.12.17 ├─ @babel/helper-wrap-function@7.13.0 ├─ @babel/helpers@7.14.0 ├─ @babel/highlight@7.13.10 ├─ @babel/parser@7.13.13 ├─ @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.13.12 ├─ @babel/plugin-proposal-async-generator-functions@7.14.2 ├─ @babel/plugin-proposal-class-properties@7.13.0 ├─ @babel/plugin-proposal-class-static-block@7.13.11 ├─ @babel/plugin-proposal-dynamic-import@7.14.2 ├─ @babel/plugin-proposal-export-namespace-from@7.14.2 ├─ @babel/plugin-proposal-json-strings@7.14.2 ├─ @babel/plugin-proposal-logical-assignment-operators@7.14.2 ├─ @babel/plugin-proposal-nullish-coalescing-operator@7.14.2 ├─ @babel/plugin-proposal-numeric-separator@7.14.2 ├─ @babel/plugin-proposal-object-rest-spread@7.14.2 ├─ @babel/plugin-proposal-optional-catch-binding@7.14.2 ├─ @babel/plugin-proposal-optional-chaining@7.14.2 ├─ @babel/plugin-proposal-private-methods@7.13.0 ├─ @babel/plugin-proposal-private-property-in-object@7.14.0 ├─ @babel/plugin-proposal-unicode-property-regex@7.12.13 ├─ @babel/plugin-syntax-async-generators@7.8.4 ├─ @babel/plugin-syntax-class-properties@7.12.13 ├─ @babel/plugin-syntax-class-static-block@7.12.13 ├─ @babel/plugin-syntax-dynamic-import@7.8.3 ├─ @babel/plugin-syntax-export-namespace-from@7.8.3 ├─ @babel/plugin-syntax-json-strings@7.8.3 ├─ @babel/plugin-syntax-logical-assignment-operators@7.10.4 ├─ @babel/plugin-syntax-nullish-coalescing-operator@7.8.3 ├─ @babel/plugin-syntax-numeric-separator@7.10.4 ├─ @babel/plugin-syntax-object-rest-spread@7.8.3 ├─ @babel/plugin-syntax-optional-catch-binding@7.8.3 ├─ @babel/plugin-syntax-optional-chaining@7.8.3 ├─ @babel/plugin-syntax-private-property-in-object@7.14.0 ├─ @babel/plugin-syntax-top-level-await@7.12.13 ├─ @babel/plugin-transform-arrow-functions@7.13.0 ├─ @babel/plugin-transform-async-to-generator@7.13.0 ├─ @babel/plugin-transform-block-scoped-functions@7.12.13 ├─ @babel/plugin-transform-block-scoping@7.14.2 ├─ @babel/plugin-transform-classes@7.14.2 ├─ @babel/plugin-transform-computed-properties@7.13.0 ├─ @babel/plugin-transform-destructuring@7.13.17 ├─ @babel/plugin-transform-dotall-regex@7.12.13 ├─ @babel/plugin-transform-duplicate-keys@7.12.13 ├─ @babel/plugin-transform-exponentiation-operator@7.12.13 ├─ @babel/plugin-transform-for-of@7.13.0 ├─ @babel/plugin-transform-function-name@7.12.13 ├─ @babel/plugin-transform-literals@7.12.13 ├─ @babel/plugin-transform-member-expression-literals@7.12.13 ├─ @babel/plugin-transform-modules-amd@7.14.2 ├─ @babel/plugin-transform-modules-commonjs@7.14.0 ├─ @babel/plugin-transform-modules-systemjs@7.13.8 ├─ @babel/plugin-transform-modules-umd@7.14.0 ├─ @babel/plugin-transform-named-capturing-groups-regex@7.12.13 ├─ @babel/plugin-transform-new-target@7.12.13 ├─ @babel/plugin-transform-object-super@7.12.13 ├─ @babel/plugin-transform-parameters@7.14.2 ├─ @babel/plugin-transform-property-literals@7.12.13 ├─ @babel/plugin-transform-regenerator@7.13.15 ├─ @babel/plugin-transform-reserved-words@7.12.13 ├─ @babel/plugin-transform-shorthand-properties@7.12.13 ├─ @babel/plugin-transform-spread@7.13.0 ├─ @babel/plugin-transform-sticky-regex@7.12.13 ├─ @babel/plugin-transform-template-literals@7.13.0 ├─ @babel/plugin-transform-typeof-symbol@7.12.13 ├─ @babel/plugin-transform-unicode-escapes@7.12.13 ├─ @babel/plugin-transform-unicode-regex@7.12.13 ├─ @babel/preset-env@7.14.2 ├─ @babel/preset-modules@0.1.4 ├─ @babel/runtime@7.13.10 ├─ @babel/template@7.12.13 ├─ @babel/traverse@7.13.13 ├─ @babel/types@7.13.14 ├─ @dabh/diagnostics@2.0.2 ├─ @eslint/eslintrc@0.4.1 ├─ @hapi/accept@3.2.4 ├─ @hapi/address@2.1.4 ├─ @hapi/ammo@3.1.2 ├─ @hapi/b64@4.2.1 ├─ @hapi/boom@7.4.11 ├─ @hapi/bounce@1.3.2 ├─ @hapi/bourne@1.3.2 ├─ @hapi/call@5.1.3 ├─ @hapi/catbox-memory@4.1.1 ├─ @hapi/catbox@10.2.3 ├─ @hapi/content@4.1.1 ├─ @hapi/cryptiles@4.2.1 ├─ @hapi/file@1.0.0 ├─ @hapi/formula@1.2.0 ├─ @hapi/h2o2@8.3.2 ├─ @hapi/hapi@18.4.1 ├─ @hapi/heavy@6.2.2 ├─ @hapi/hoek@8.5.1 ├─ @hapi/iron@5.1.4 ├─ @hapi/joi@16.1.8 ├─ @hapi/mimos@4.1.1 ├─ @hapi/nigel@3.1.1 ├─ @hapi/pez@4.1.2 ├─ @hapi/pinpoint@1.0.2 ├─ @hapi/podium@3.4.3 ├─ @hapi/shot@4.1.2 ├─ @hapi/somever@2.1.1 ├─ @hapi/statehood@6.1.2 ├─ @hapi/subtext@6.1.3 ├─ @hapi/teamwork@3.3.1 ├─ @hapi/topo@3.1.6 ├─ @hapi/vise@3.1.1 ├─ @hapi/wreck@15.1.0 ├─ @koa/router@9.4.0 ├─ @kwsites/file-exists@1.1.1 ├─ @kwsites/promise-deferred@1.1.1 ├─ @nodelib/fs.scandir@2.1.4 ├─ @nodelib/fs.stat@2.0.4 ├─ @nodelib/fs.walk@1.2.6 ├─ @protobufjs/aspromise@1.1.2 ├─ @protobufjs/base64@1.1.2 ├─ @protobufjs/codegen@2.0.4 ├─ @protobufjs/eventemitter@1.1.0 ├─ @protobufjs/fetch@1.1.0 ├─ @protobufjs/float@1.0.2 ├─ @protobufjs/inquire@1.1.0 ├─ @protobufjs/path@1.1.2 ├─ @protobufjs/pool@1.1.0 ├─ @protobufjs/utf8@1.1.0 ├─ @serverless/cli@1.5.2 ├─ @serverless/component-metrics@1.0.8 ├─ @serverless/components@3.10.0 ├─ @serverless/core@1.1.2 ├─ @serverless/dashboard-plugin@5.1.3 ├─ @serverless/event-mocks@1.1.1 ├─ @serverless/platform-client-china@2.1.9 ├─ @serverless/platform-client@4.2.2 ├─ @serverless/template@1.1.4 ├─ @serverless/utils-china@1.0.14 ├─ @serverless/utils@5.1.0 ├─ @sindresorhus/is@4.0.0 ├─ @szmarczak/http-timer@4.0.5 ├─ @tencent-sdk/capi@1.1.8 ├─ @tencent-sdk/cls@0.2.1 ├─ @tencent-sdk/common@0.1.0 ├─ @tencent-sdk/faas@0.1.5 ├─ @tokenizer/token@0.1.1 ├─ @types/cacheable-request@6.0.1 ├─ @types/caseless@0.12.2 ├─ @types/debug@4.1.5 ├─ @types/eslint-scope@3.7.0 ├─ @types/eslint@7.2.7 ├─ @types/estree@0.0.47 ├─ @types/http-cache-semantics@4.0.0 ├─ @types/json-schema@7.0.7 ├─ @types/json5@0.0.29 ├─ @types/keyv@3.1.1 ├─ @types/lodash@4.14.168 ├─ @types/long@4.0.1 ├─ @types/node@14.14.37 ├─ @types/readable-stream@2.3.10 ├─ @types/request-promise-native@1.0.17 ├─ @types/request@2.48.5 ├─ @types/responselike@1.0.0 ├─ @types/retry@0.12.0 ├─ @types/tough-cookie@4.0.0 ├─ @webassemblyjs/ast@1.11.0 ├─ @webassemblyjs/floating-point-hex-parser@1.11.0 ├─ @webassemblyjs/helper-api-error@1.11.0 ├─ @webassemblyjs/helper-buffer@1.11.0 ├─ @webassemblyjs/helper-numbers@1.11.0 ├─ @webassemblyjs/helper-wasm-bytecode@1.11.0 ├─ @webassemblyjs/helper-wasm-section@1.11.0 ├─ @webassemblyjs/ieee754@1.11.0 ├─ @webassemblyjs/leb128@1.11.0 ├─ @webassemblyjs/utf8@1.11.0 ├─ @webassemblyjs/wasm-edit@1.11.0 ├─ @webassemblyjs/wasm-gen@1.11.0 ├─ @webassemblyjs/wasm-opt@1.11.0 ├─ @webassemblyjs/wasm-parser@1.11.0 ├─ @webassemblyjs/wast-printer@1.11.0 ├─ @xtuc/ieee754@1.2.0 ├─ @xtuc/long@4.2.2 ├─ 2-thenable@1.0.0 ├─ accepts@1.3.7 ├─ acorn-jsx@5.3.1 ├─ acorn@7.4.1 ├─ adm-zip@0.5.4 ├─ after@0.8.2 ├─ agent-base@6.0.2 ├─ ajv-keywords@3.5.2 ├─ ajv@6.12.6 ├─ ansi-align@3.0.0 ├─ ansi-colors@4.1.1 ├─ ansi-escapes@4.3.2 ├─ ansi-regex@2.1.1 ├─ ansi-styles@4.3.0 ├─ any-promise@1.3.0 ├─ anymatch@3.1.1 ├─ aproba@1.2.0 ├─ archive-type@4.0.0 ├─ archiver-utils@2.1.0 ├─ archiver@5.3.0 ├─ are-we-there-yet@1.1.5 ├─ arg@4.1.3 ├─ argparse@1.0.10 ├─ array-includes@3.1.3 ├─ array-union@2.1.0 ├─ array.prototype.flat@1.2.4 ├─ arraybuffer.slice@0.0.7 ├─ asn1@0.2.4 ├─ assert-plus@1.0.0 ├─ astral-regex@2.0.0 ├─ async@2.6.3 ├─ asynckit@0.4.0 ├─ at-least-node@1.0.0 ├─ aws-sdk@2.913.0 ├─ aws-sign2@0.7.0 ├─ aws4@1.11.0 ├─ axios@0.21.1 ├─ babel-loader@8.2.2 ├─ babel-plugin-dynamic-import-node@2.3.3 ├─ babel-plugin-polyfill-corejs2@0.2.0 ├─ babel-plugin-polyfill-corejs3@0.2.0 ├─ babel-plugin-polyfill-regenerator@0.2.0 ├─ babel-runtime@6.26.0 ├─ backo2@1.0.2 ├─ balanced-match@1.0.0 ├─ base64-arraybuffer@0.1.4 ├─ base64-js@1.5.1 ├─ bcrypt-pbkdf@1.0.2 ├─ bestzip@2.2.0 ├─ big.js@5.2.2 ├─ binary-extensions@2.2.0 ├─ binary@0.3.0 ├─ bindings@1.5.0 ├─ bl@1.2.3 ├─ blob@0.0.5 ├─ bluebird@3.7.2 ├─ boxen@5.0.0 ├─ brace-expansion@1.1.11 ├─ braces@3.0.2 ├─ browserslist@4.16.3 ├─ buffer-alloc-unsafe@1.1.0 ├─ buffer-alloc@1.2.0 ├─ buffer-crc32@0.2.13 ├─ buffer-equal-constant-time@1.0.1 ├─ buffer-fill@1.0.0 ├─ buffer-from@1.1.1 ├─ buffer@4.9.2 ├─ buffermaker@1.2.1 ├─ builtin-modules@3.2.0 ├─ busboy@0.3.1 ├─ bytes@3.1.0 ├─ cache-content-type@1.0.1 ├─ cacheable-lookup@5.0.4 ├─ cacheable-request@7.0.1 ├─ cachedir@2.3.0 ├─ call-bind@1.0.2 ├─ callsites@3.1.0 ├─ camelcase@6.2.0 ├─ caniuse-lite@1.0.30001204 ├─ caseless@0.12.0 ├─ chainsaw@0.1.0 ├─ chalk@4.1.1 ├─ chardet@0.7.0 ├─ child-process-ext@2.1.1 ├─ chokidar@3.5.1 ├─ chownr@1.1.4 ├─ chrome-trace-event@1.0.2 ├─ ci-info@3.1.1 ├─ cli-boxes@2.2.1 ├─ cli-color@2.0.0 ├─ cli-cursor@3.1.0 ├─ cli-width@3.0.0 ├─ cliui@4.1.0 ├─ clone-response@1.0.2 ├─ co@4.6.0 ├─ code-point-at@1.1.0 ├─ color-convert@1.9.3 ├─ color-name@1.1.4 ├─ color-string@1.5.5 ├─ color@3.1.3 ├─ colorette@1.2.2 ├─ colornames@1.1.1 ├─ colorspace@1.1.2 ├─ combined-stream@1.0.8 ├─ commander@2.20.3 ├─ commondir@1.0.1 ├─ component-bind@1.0.0 ├─ component-emitter@1.3.0 ├─ component-inherit@0.0.3 ├─ compress-commons@4.1.0 ├─ concat-map@0.0.1 ├─ configstore@5.0.1 ├─ confusing-browser-globals@1.0.10 ├─ console-control-strings@1.1.0 ├─ contains-path@0.1.0 ├─ content-disposition@0.5.3 ├─ content-type@1.0.4 ├─ convert-source-map@1.7.0 ├─ cookiejar@2.1.2 ├─ cookies@0.8.0 ├─ core-js-compat@3.9.1 ├─ core-js@2.6.12 ├─ core-util-is@1.0.2 ├─ crc-32@1.2.0 ├─ crc32-stream@4.0.2 ├─ create-require@1.1.1 ├─ cron-parser@2.18.0 ├─ cross-spawn@6.0.5 ├─ crypto-random-string@2.0.0 ├─ cuid@2.1.8 ├─ d@1.0.1 ├─ dashdash@1.14.1 ├─ dayjs@1.10.4 ├─ debug@4.3.2 ├─ decamelize@1.2.0 ├─ decompress-response@3.3.0 ├─ decompress-tar@4.1.1 ├─ decompress-tarbz2@4.1.1 ├─ decompress-targz@4.1.1 ├─ decompress-unzip@4.0.1 ├─ decompress@4.2.1 ├─ deep-equal@1.0.1 ├─ deep-extend@0.6.0 ├─ deep-is@0.1.3 ├─ defer-to-connect@2.0.1 ├─ deferred@0.7.11 ├─ define-properties@1.1.3 ├─ delayed-stream@1.0.0 ├─ delegates@1.0.0 ├─ denque@1.5.0 ├─ depd@1.1.2 ├─ destroy@1.0.4 ├─ detect-libc@1.0.3 ├─ diagnostics@1.1.1 ├─ dicer@0.3.0 ├─ diff@4.0.2 ├─ dijkstrajs@1.0.1 ├─ dir-glob@3.0.1 ├─ doctrine@1.5.0 ├─ dot-prop@5.3.0 ├─ dot-qs@0.2.0 ├─ dotenv@8.2.0 ├─ duplexer3@0.1.4 ├─ duplexify@4.1.1 ├─ duration@0.2.2 ├─ ecc-jsbn@0.1.2 ├─ ecdsa-sig-formatter@1.0.11 ├─ ee-first@1.1.1 ├─ electron-to-chromium@1.3.702 ├─ emoji-regex@8.0.0 ├─ emojis-list@3.0.0 ├─ enabled@2.0.0 ├─ encodeurl@1.0.2 ├─ end-of-stream@1.4.4 ├─ engine.io-client@3.5.1 ├─ engine.io-parser@2.2.1 ├─ enhanced-resolve@5.8.0 ├─ enquirer@2.3.6 ├─ env-variable@0.0.6 ├─ error-ex@1.3.2 ├─ es-abstract@1.18.0 ├─ es-module-lexer@0.4.1 ├─ es-to-primitive@1.2.1 ├─ es5-ext@0.10.53 ├─ es6-iterator@2.0.3 ├─ es6-promisify@6.1.1 ├─ es6-set@0.1.5 ├─ es6-symbol@3.1.3 ├─ es6-weak-map@2.0.3 ├─ escalade@3.1.1 ├─ escape-goat@2.1.1 ├─ escape-html@1.0.3 ├─ escape-string-regexp@1.0.5 ├─ eslint-config-airbnb-base@14.2.1 ├─ eslint-import-resolver-node@0.3.4 ├─ eslint-module-utils@2.6.0 ├─ eslint-plugin-import@2.22.1 ├─ eslint-scope@5.1.1 ├─ eslint-utils@2.1.0 ├─ eslint-visitor-keys@1.3.0 ├─ eslint@7.26.0 ├─ esniff@1.1.0 ├─ espree@7.3.1 ├─ esprima@4.0.1 ├─ esquery@1.4.0 ├─ esrecurse@4.3.0 ├─ essentials@1.1.1 ├─ estraverse@5.2.0 ├─ esutils@2.0.3 ├─ event-emitter@0.3.5 ├─ eventemitter3@4.0.7 ├─ events@1.1.1 ├─ execa@5.0.0 ├─ exit-on-epipe@1.0.1 ├─ expand-template@2.0.3 ├─ ext-list@2.2.2 ├─ ext-name@5.0.0 ├─ ext@1.4.0 ├─ extend@3.0.2 ├─ external-editor@3.1.0 ├─ extsprintf@1.3.0 ├─ fast-deep-equal@3.1.3 ├─ fast-glob@3.2.5 ├─ fast-json-stable-stringify@2.1.0 ├─ fast-levenshtein@2.0.6 ├─ fast-safe-stringify@2.0.7 ├─ fast-xml-parser@3.19.0 ├─ fastest-levenshtein@1.0.12 ├─ fastq@1.11.0 ├─ fd-slicer@1.1.0 ├─ fecha@4.2.0 ├─ figures@3.2.0 ├─ file-entry-cache@6.0.1 ├─ file-type@5.2.0 ├─ file-uri-to-path@1.0.0 ├─ filename-reserved-regex@2.0.0 ├─ filenamify@4.3.0 ├─ filesize@6.3.0 ├─ fill-range@7.0.1 ├─ find-cache-dir@3.3.1 ├─ find-requires@1.0.0 ├─ find-up@2.1.0 ├─ flat-cache@3.0.4 ├─ flat@5.0.2 ├─ flatted@3.1.1 ├─ fn.name@1.1.0 ├─ follow-redirects@1.13.3 ├─ forever-agent@0.6.1 ├─ form-data@2.5.1 ├─ formidable@1.2.2 ├─ fresh@0.5.2 ├─ fs-constants@1.0.0 ├─ fs-extra@9.1.0 ├─ fs-minipass@2.1.0 ├─ fs.realpath@1.0.0 ├─ fs2@0.3.9 ├─ fsevents@2.3.2 ├─ function-bind@1.1.1 ├─ functional-red-black-tree@1.0.1 ├─ gauge@2.7.4 ├─ gensync@1.0.0-beta.2 ├─ get-caller-file@1.0.3 ├─ get-intrinsic@1.1.1 ├─ get-stdin@8.0.0 ├─ get-stream@4.1.0 ├─ getpass@0.1.7 ├─ github-from-package@0.0.0 ├─ glob-parent@5.1.2 ├─ glob-to-regexp@0.4.1 ├─ glob@7.1.6 ├─ global-dirs@3.0.0 ├─ globals@11.12.0 ├─ globby@11.0.3 ├─ got@11.8.2 ├─ graceful-fs@4.2.6 ├─ graphlib@2.1.8 ├─ har-schema@2.0.0 ├─ har-validator@5.1.5 ├─ has-bigints@1.0.1 ├─ has-binary2@1.0.3 ├─ has-cors@1.1.0 ├─ has-flag@4.0.0 ├─ has-symbols@1.0.2 ├─ has-unicode@2.0.1 ├─ has-yarn@2.1.0 ├─ has@1.0.3 ├─ he@1.2.0 ├─ hosted-git-info@2.8.8 ├─ http-assert@1.4.1 ├─ http-cache-semantics@4.1.0 ├─ http-errors@1.8.0 ├─ http-signature@1.2.0 ├─ http2-wrapper@1.0.3 ├─ https-proxy-agent@5.0.0 ├─ human-signals@2.1.0 ├─ humanize-number@0.0.2 ├─ iconv-lite@0.4.24 ├─ ieee754@1.1.13 ├─ ignore@5.1.8 ├─ immediate@3.0.6 ├─ import-fresh@3.3.0 ├─ import-lazy@2.1.0 ├─ imurmurhash@0.1.4 ├─ in-publish@2.0.1 ├─ indexof@0.0.1 ├─ inflight@1.0.6 ├─ inherits@2.0.4 ├─ ini@1.3.8 ├─ inquirer-autocomplete-prompt@1.3.0 ├─ inquirer@7.3.3 ├─ interpret@1.4.0 ├─ invert-kv@2.0.0 ├─ is-arrayish@0.3.2 ├─ is-bigint@1.0.1 ├─ is-binary-path@2.1.0 ├─ is-boolean-object@1.1.0 ├─ is-builtin-module@3.1.0 ├─ is-callable@1.2.3 ├─ is-ci@2.0.0 ├─ is-core-module@2.2.0 ├─ is-date-object@1.0.2 ├─ is-docker@2.1.1 ├─ is-extglob@2.1.1 ├─ is-fullwidth-code-point@2.0.0 ├─ is-generator-function@1.0.8 ├─ is-glob@4.0.1 ├─ is-installed-globally@0.4.0 ├─ is-nan@1.3.2 ├─ is-natural-number@4.0.1 ├─ is-negative-zero@2.0.1 ├─ is-npm@5.0.0 ├─ is-number-object@1.0.4 ├─ is-number@7.0.0 ├─ is-obj@2.0.0 ├─ is-path-inside@3.0.3 ├─ is-plain-obj@1.1.0 ├─ is-promise@2.2.2 ├─ is-regex@1.1.2 ├─ is-stream@1.1.0 ├─ is-string@1.0.5 ├─ is-symbol@1.0.3 ├─ is-typedarray@1.0.0 ├─ is-wsl@2.2.0 ├─ is-yarn-global@0.3.0 ├─ isarray@1.0.0 ├─ isexe@2.0.0 ├─ isomorphic-ws@4.0.1 ├─ isstream@0.1.2 ├─ java-invoke-local@0.0.6 ├─ jest-worker@26.6.2 ├─ jmespath@0.15.0 ├─ js-string-escape@1.0.1 ├─ js-tokens@4.0.0 ├─ js-yaml@3.14.1 ├─ jsbn@0.1.1 ├─ jsesc@2.5.2 ├─ jsome@2.5.0 ├─ json-buffer@3.0.1 ├─ json-cycle@1.3.0 ├─ json-parse-better-errors@1.0.2 ├─ json-refs@3.0.15 ├─ json-schema-traverse@0.4.1 ├─ json-schema@0.2.3 ├─ json-stable-stringify-without-jsonify@1.0.1 ├─ json-stringify-safe@5.0.1 ├─ json5@1.0.1 ├─ jsonfile@4.0.0 ├─ jsonpath-plus@5.0.4 ├─ jsonschema@1.4.0 ├─ jsonwebtoken@8.5.1 ├─ jsprim@1.4.1 ├─ jszip@3.6.0 ├─ jwa@1.4.1 ├─ jws@3.2.2 ├─ jwt-decode@3.1.2 ├─ kafka-node@5.0.0 ├─ keygrip@1.1.0 ├─ keyv@4.0.3 ├─ koa-compose@4.1.0 ├─ koa-convert@1.2.0 ├─ koa-logger@3.2.1 ├─ koa@2.13.1 ├─ kuler@2.0.0 ├─ latest-version@5.1.0 ├─ lazystream@1.0.0 ├─ lcid@2.0.0 ├─ levn@0.4.1 ├─ lie@3.3.0 ├─ load-json-file@2.0.0 ├─ loader-runner@4.2.0 ├─ loader-utils@1.4.0 ├─ locate-path@2.0.0 ├─ lodash.clonedeep@4.5.0 ├─ lodash.debounce@4.0.8 ├─ lodash.defaults@4.2.0 ├─ lodash.difference@4.5.0 ├─ lodash.flatten@4.4.0 ├─ lodash.includes@4.3.0 ├─ lodash.isboolean@3.0.3 ├─ lodash.isinteger@4.0.4 ├─ lodash.isnumber@3.0.3 ├─ lodash.isplainobject@4.0.6 ├─ lodash.isstring@4.0.1 ├─ lodash.once@4.1.1 ├─ lodash.truncate@4.4.2 ├─ lodash.union@4.6.0 ├─ lodash@4.17.21 ├─ log@6.0.0 ├─ logform@2.2.0 ├─ long-timeout@0.1.1 ├─ long@4.0.0 ├─ lowercase-keys@2.0.0 ├─ lru-cache@6.0.0 ├─ lru-queue@0.1.0 ├─ luxon@1.26.0 ├─ make-dir@3.1.0 ├─ make-error@1.3.6 ├─ map-age-cleaner@0.1.3 ├─ media-typer@0.3.0 ├─ mem@6.1.1 ├─ memoizee@0.4.15 ├─ merge-stream@2.0.0 ├─ merge2@1.4.1 ├─ methods@1.1.2 ├─ micromatch@4.0.4 ├─ mime-db@1.46.0 ├─ mime-types@2.1.29 ├─ mime@1.6.0 ├─ mimic-fn@2.1.0 ├─ mimic-response@1.0.1 ├─ minimatch@3.0.4 ├─ minimist@1.2.5 ├─ minipass@3.1.3 ├─ minizlib@2.1.2 ├─ mkdirp-classic@0.5.3 ├─ mkdirp@0.5.5 ├─ moment-timezone@0.5.33 ├─ moment@2.29.1 ├─ ms@2.1.3 ├─ mute-stream@0.0.8 ├─ nan@2.14.2 ├─ nanoid@2.1.11 ├─ napi-build-utils@1.0.2 ├─ native-promise-only@0.8.1 ├─ natural-compare@1.4.0 ├─ ncjsm@4.2.0 ├─ negotiator@0.6.2 ├─ neo-async@2.6.2 ├─ nested-error-stacks@2.1.0 ├─ next-tick@1.1.0 ├─ nice-try@1.0.5 ├─ node-abi@2.26.0 ├─ node-addon-api@3.2.0 ├─ node-dir@0.1.17 ├─ node-fetch@2.6.1 ├─ node-releases@1.1.71 ├─ node-schedule@1.3.3 ├─ noop-logger@0.1.1 ├─ normalize-package-data@2.5.0 ├─ normalize-path@3.0.0 ├─ normalize-url@4.5.0 ├─ npm-run-path@4.0.1 ├─ npmlog@4.1.2 ├─ number-is-nan@1.0.1 ├─ oauth-sign@0.9.0 ├─ object-assign@4.1.1 ├─ object-hash@2.1.1 ├─ object-inspect@1.9.0 ├─ object-keys@1.1.1 ├─ object.assign@4.1.2 ├─ object.entries@1.1.3 ├─ object.fromentries@2.0.4 ├─ object.values@1.1.3 ├─ on-finished@2.3.0 ├─ once@1.4.0 ├─ one-time@1.0.0 ├─ onetime@5.1.2 ├─ only@0.0.2 ├─ open@7.4.2 ├─ optional@0.1.4 ├─ optionator@0.9.1 ├─ os-homedir@1.0.2 ├─ os-locale@3.1.0 ├─ os-tmpdir@1.0.2 ├─ p-cancelable@2.1.0 ├─ p-defer@1.0.0 ├─ p-event@4.2.0 ├─ p-finally@1.0.0 ├─ p-is-promise@2.1.0 ├─ p-limit@1.3.0 ├─ p-locate@2.0.0 ├─ p-memoize@4.0.1 ├─ p-queue@6.6.2 ├─ p-retry@4.5.0 ├─ p-timeout@3.2.0 ├─ p-try@1.0.0 ├─ package-json@6.5.0 ├─ pako@1.0.11 ├─ parent-module@1.0.1 ├─ parse-json@2.2.0 ├─ parseqs@0.0.6 ├─ parseuri@0.0.6 ├─ parseurl@1.3.3 ├─ passthrough-counter@1.0.0 ├─ path-exists@3.0.0 ├─ path-is-absolute@1.0.1 ├─ path-key@2.0.1 ├─ path-loader@1.0.10 ├─ path-parse@1.0.6 ├─ path-to-regexp@6.2.0 ├─ path-type@2.0.0 ├─ path2@0.1.0 ├─ peek-readable@3.1.3 ├─ pend@1.2.0 ├─ performance-now@2.1.0 ├─ picomatch@2.2.2 ├─ pify@2.3.0 ├─ pinkie-promise@2.0.1 ├─ pinkie@2.0.4 ├─ pkg-dir@2.0.0 ├─ please-upgrade-node@3.2.0 ├─ portfinder@1.0.28 ├─ prebuild-install@6.1.2 ├─ prelude-ls@1.2.1 ├─ prepend-http@2.0.0 ├─ prettyoutput@1.2.0 ├─ printj@1.1.2 ├─ process-nextick-args@2.0.1 ├─ progress@2.0.3 ├─ promise-queue@2.2.5 ├─ protobufjs@6.10.2 ├─ psl@1.8.0 ├─ pump@3.0.0 ├─ punycode@2.1.1 ├─ pupa@2.1.1 ├─ put-with-s3-event-response@1.0.0 ├─ qrcode-terminal@0.12.0 ├─ qs@6.10.1 ├─ querystring@0.2.0 ├─ queue-microtask@1.2.3 ├─ quick-lru@5.1.1 ├─ ramda@0.26.1 ├─ randombytes@2.1.0 ├─ rc@1.2.8 ├─ read-pkg-up@2.0.0 ├─ read-pkg@2.0.0 ├─ readable-stream@3.6.0 ├─ readable-web-to-node-stream@3.0.1 ├─ readdir-glob@1.1.1 ├─ readdirp@3.5.0 ├─ rechoir@0.6.2 ├─ regenerate-unicode-properties@8.2.0 ├─ regenerate@1.4.2 ├─ regenerator-runtime@0.11.1 ├─ regenerator-transform@0.14.5 ├─ regexpp@3.1.0 ├─ regexpu-core@4.7.1 ├─ registry-auth-token@4.2.1 ├─ registry-url@5.1.0 ├─ regjsgen@0.5.2 ├─ regjsparser@0.6.9 ├─ replaceall@0.1.6 ├─ request-promise-core@1.1.4 ├─ request-promise-native@1.0.9 ├─ request@2.88.2 ├─ require-directory@2.1.1 ├─ require-from-string@2.0.2 ├─ require-main-filename@1.0.1 ├─ resize-image@1.0.0 ├─ resolve-alpn@1.0.0 ├─ resolve-from@4.0.0 ├─ resolve@1.20.0 ├─ responselike@2.0.0 ├─ restore-cursor@3.1.0 ├─ retry@0.12.0 ├─ reusify@1.0.4 ├─ rimraf@3.0.2 ├─ run-async@2.4.1 ├─ run-parallel-limit@1.1.0 ├─ run-parallel@1.2.0 ├─ rxjs-compat@6.6.7 ├─ rxjs@6.6.7 ├─ s3rver@3.7.0 ├─ safe-buffer@5.2.1 ├─ safer-buffer@2.1.2 ├─ sax@1.2.1 ├─ schema-utils@3.0.0 ├─ seek-bzip@1.0.6 ├─ semver-compare@1.0.0 ├─ semver-diff@3.1.1 ├─ semver@6.3.0 ├─ serialize-javascript@5.0.1 ├─ serverless-offline@6.9.0 ├─ serverless-s3-local@0.6.17 ├─ serverless-webpack@5.4.2 ├─ serverless@2.43.1 ├─ set-blocking@2.0.0 ├─ set-immediate-shim@1.0.1 ├─ setprototypeof@1.2.0 ├─ sharp@0.28.3 ├─ shebang-command@1.2.0 ├─ shebang-regex@1.0.0 ├─ shelljs@0.8.4 ├─ shortid@2.2.16 ├─ side-channel@1.0.4 ├─ signal-exit@3.0.3 ├─ simple-concat@1.0.1 ├─ simple-event-python@1.0.0 ├─ simple-event@1.0.0 ├─ simple-get@3.1.0 ├─ simple-git@2.39.0 ├─ simple-put@1.0.0 ├─ simple-swizzle@0.2.2 ├─ slash@3.0.0 ├─ slice-ansi@4.0.0 ├─ snappy@6.3.5 ├─ socket.io-client@2.4.0 ├─ socket.io-parser@3.3.2 ├─ sort-keys-length@1.0.1 ├─ sort-keys@1.1.2 ├─ sorted-array-functions@1.3.0 ├─ source-list-map@2.0.1 ├─ source-map-support@0.5.19 ├─ source-map@0.5.7 ├─ spdx-correct@3.1.1 ├─ spdx-exceptions@2.3.0 ├─ spdx-expression-parse@3.0.1 ├─ spdx-license-ids@3.0.7 ├─ split2@3.2.2 ├─ sprintf-js@1.0.3 ├─ sprintf-kit@2.0.0 ├─ sshpk@1.16.1 ├─ stack-trace@0.0.10 ├─ statuses@1.5.0 ├─ stealthy-require@1.1.1 ├─ stream-promise@3.2.0 ├─ stream-shift@1.0.1 ├─ streamsearch@0.1.2 ├─ string_decoder@1.3.0 ├─ string-width@4.2.2 ├─ string.prototype.trimend@1.0.4 ├─ string.prototype.trimstart@1.0.4 ├─ strip-ansi@6.0.0 ├─ strip-bom@3.0.0 ├─ strip-dirs@2.1.0 ├─ strip-eof@1.0.0 ├─ strip-final-newline@2.0.0 ├─ strip-json-comments@3.1.1 ├─ strip-outer@1.0.1 ├─ strtok3@6.0.8 ├─ superagent@3.8.3 ├─ supports-color@7.2.0 ├─ table@6.0.8 ├─ tabtab@3.0.2 ├─ tapable@2.2.0 ├─ tar-fs@2.1.1 ├─ tar-stream@1.6.2 ├─ tar@6.1.0 ├─ tencent-serverless-http@1.3.2 ├─ terser-webpack-plugin@5.1.1 ├─ terser@5.6.1 ├─ text-hex@1.0.0 ├─ text-table@0.2.0 ├─ throat@5.0.0 ├─ through@2.3.8 ├─ timers-ext@0.1.7 ├─ tmp@0.0.33 ├─ to-array@0.1.4 ├─ to-buffer@1.1.1 ├─ to-fast-properties@2.0.0 ├─ to-readable-stream@1.0.0 ├─ to-regex-range@5.0.1 ├─ toidentifier@1.0.0 ├─ token-types@2.1.1 ├─ tough-cookie@2.5.0 ├─ traverse@0.6.6 ├─ trim-repeated@1.0.0 ├─ triple-beam@1.3.0 ├─ ts-node@9.1.1 ├─ tsconfig-paths@3.9.0 ├─ tslib@1.14.1 ├─ tsscmp@1.0.6 ├─ tunnel-agent@0.6.0 ├─ tweetnacl@0.14.5 ├─ type-check@0.4.0 ├─ type-fest@0.20.2 ├─ type-is@1.6.18 ├─ type@2.5.0 ├─ typedarray-to-buffer@3.1.5 ├─ unbox-primitive@1.0.1 ├─ unbzip2-stream@1.4.3 ├─ unicode-canonical-property-names-ecmascript@1.0.4 ├─ unicode-match-property-ecmascript@1.0.4 ├─ unicode-match-property-value-ecmascript@1.2.0 ├─ unicode-property-aliases-ecmascript@1.1.0 ├─ unique-string@2.0.0 ├─ universalify@2.0.0 ├─ untildify@4.0.0 ├─ update-notifier@5.1.0 ├─ uri-js@4.4.1 ├─ url-parse-lax@3.0.0 ├─ url@0.10.3 ├─ urlencode@1.1.0 ├─ util-deprecate@1.0.2 ├─ uuid@8.3.2 ├─ v8-compile-cache@2.3.0 ├─ validate-npm-package-license@3.0.4 ├─ vary@1.1.2 ├─ velocityjs@2.0.3 ├─ verror@1.10.0 ├─ watchpack@2.2.0 ├─ webpack-node-externals@2.5.2 ├─ webpack-sources@2.3.0 ├─ webpack-support@1.0.3 ├─ webpack@5.38.1 ├─ which-boxed-primitive@1.0.2 ├─ which-module@2.0.0 ├─ which-pm-runs@1.0.0 ├─ which@2.0.2 ├─ wide-align@1.1.3 ├─ widest-line@3.1.0 ├─ winston-transport@4.4.0 ├─ winston@3.3.3 ├─ word-wrap@1.2.3 ├─ wrap-ansi@7.0.0 ├─ wrappy@1.0.2 ├─ write-file-atomic@3.0.3 ├─ ws@7.4.6 ├─ xdg-basedir@4.0.0 ├─ xml2js@0.4.19 ├─ xmlbuilder@9.0.7 ├─ xmlhttprequest-ssl@1.5.5 ├─ xtend@4.0.2 ├─ y18n@3.2.2 ├─ yallist@4.0.0 ├─ yaml-ast-parser@0.0.43 ├─ yamljs@0.3.0 ├─ yargs-parser@20.2.7 ├─ yargs@11.1.1 ├─ yauzl@2.10.0 ├─ yeast@0.1.2 ├─ ylru@1.2.1 ├─ yn@3.1.1 ├─ yocto-queue@0.1.0 └─ zip-stream@4.1.0 ✨ Done in 0.62s. ```

Did a simple install, but with yarn:

yarn add serverless-s3-local --dev
sls plugin install -n serverless-s3-local

Getting this error when i run sls --help even (SLS_DEBUG=*):

% sls --help        
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command config:tabcompletion
Serverless: Load command config:tabcompletion:install
Serverless: Load command config:tabcompletion:uninstall
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command upgrade
Serverless: Load command uninstall

 Type Error ----------------------------------------------

  TypeError: Cannot read property 'name' of undefined
      at exports.fromCallback (/Users/json/src/recollect-serverless/rec-image-api/node_modules/universalify/index.js:15:26)
      at Object.<anonymous> (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless-s3-local/node_modules/fs-extra/lib/fs/index.js:57:27)
      at Module._compile (internal/modules/cjs/loader.js:1198:30)
      at Module._compile (pkg/prelude/bootstrap.js:1394:32)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1218:10)
      at Module.load (internal/modules/cjs/loader.js:1047:32)
      at Function.Module._load (internal/modules/cjs/loader.js:935:14)
      at Module.require (internal/modules/cjs/loader.js:1087:19)
      at Module.require (pkg/prelude/bootstrap.js:1338:31)
      at require (internal/modules/cjs/helpers.js:73:18)
      at Object.<anonymous> (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless-s3-local/node_modules/fs-extra/lib/index.js:5:6)
      at Module._compile (internal/modules/cjs/loader.js:1198:30)
      at Module._compile (pkg/prelude/bootstrap.js:1394:32)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1218:10)
      at Module.load (internal/modules/cjs/loader.js:1047:32)
      at Function.Module._load (internal/modules/cjs/loader.js:935:14)
      at Module.require (internal/modules/cjs/loader.js:1087:19)
      at Module.require (pkg/prelude/bootstrap.js:1338:31)
      at require (internal/modules/cjs/helpers.js:73:18)
      at Object.<anonymous> (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless-s3-local/index.js:2:12)
      at Module._compile (internal/modules/cjs/loader.js:1198:30)
      at Module._compile (pkg/prelude/bootstrap.js:1394:32)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1218:10)
      at Module.load (internal/modules/cjs/loader.js:1047:32)
      at Function.Module._load (internal/modules/cjs/loader.js:935:14)
      at Module.require (internal/modules/cjs/loader.js:1087:19)
      at Module.require (pkg/prelude/bootstrap.js:1338:31)
      at require (internal/modules/cjs/helpers.js:73:18)
      at requireServicePlugin (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless/lib/classes/PluginManager.js:32:12)
      at /Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless/lib/classes/PluginManager.js:176:22
      at Array.map (<anonymous>)
      at PluginManager.resolveServicePlugins (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless/lib/classes/PluginManager.js:173:10)
      at PluginManager.loadAllPlugins (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless/lib/classes/PluginManager.js:156:10)
      at Serverless.init (/Users/json/src/recollect-serverless/rec-image-api/node_modules/serverless/lib/Serverless.js:206:30)
      at async Serverless.eventuallyFallbackToLocal (/snapshot/serverless/lib/Serverless.js:265:5)
      at async Serverless.init (/snapshot/serverless/lib/Serverless.js:194:5)
      at async /snapshot/serverless/scripts/serverless.js:442:7

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          darwin
     Node Version:              14.4.0
     Framework Version:         2.46.0 (standalone)
     Plugin Version:            5.3.0
     SDK Version:               4.2.3
     Components Version:        3.12.0

I attempted with your resize_image example with the same issue. sls --help not working and sls offline start same thing.... wondering if you can replicate the issue, module related?

service: serverless-s3-local-example

frameworkVersion: ^2.43.1

provider:
  name: aws
  runtime: nodejs12.x
plugins:
  - serverless-s3-local
  - serverless-offline
custom:
  # Uncomment only if you want to collaborate with serverless-plugin-additional-stacks
  # additionalStacks:
  #    permanent:
  #      Resources:
  #        S3BucketData:
  #            Type: AWS::S3::Bucket
  #            Properties:
  #                BucketName: ${self:service}-data
  s3:
    port: 8000
    directory: /tmp
    # Uncomment only if you already have a S3 server running locally
    # noStart: true
functions:
  s3hook:
    handler: handler.s3hook
    events:
      - s3:
          bucket: local-bucket
          event: s3:ObjectCreated:*
          rules:
            - prefix: incoming/
            - suffix: .jpg
ar90n commented 3 years ago

Hi @sonjz ! Thanks for your precise report. I tried to reproduce this issue but I couldn't. But I found a solution to a similar problem to this issue. https://github.com/jprichardson/node-fs-extra/issues/901

In the above document, this may be solved by updating fs-extra to v10.0.0. Could you try this?

sonjz commented 3 years ago

hmm I'm using the standalone binary, i'll try uninstall that and use yarn global add serverless instead, not sure if that'll help if fs-extra is still tied to version 9.1.0, 🤞

sonjz commented 3 years ago

it did the trick!

i removed the standalone serverless, and installed with npm vs yarn which seemed to work better with nodenv (yarn global appeared to get clobbered after nodenv rehash run)

guessing the binary version might have had conflict with fs-extra used in this plugin. ... or sls upgrade might have fixed it, can't recall if i tried that.

thanks for taking the time to help me out @ar90n

IvanLjubicic commented 3 years ago

Hi guys,

I have the same problem. @sonjz I didn't get what you actually did to solve this, if you can reproduce those steps at all :)

thanks

sonjz commented 3 years ago

@IvanLjubicic you might have done what I had when I started using serverless, and follow the first install method on the serverless website: https://www.serverless.com/framework/docs/getting-started#install-as-a-standalone-binary

# this is the standalone install, don't run it, keep reading...
# curl -o- -L https://slss.io/install | bash

I'm guessing that serverless-s3-local uses the latest version of fs-extra and the standalone serverless binary is packaged with an older version, which is causing the conflict. To resolve the conflict, we want serverless to depend on system available libraries, not the older ones with the standalone install.

First you'll need to clean up the stand-alone binary install. As I didn't see an uninstall script, I looked at the install script ^^^ and reversed the steps, starting with where serverless and where sls. I verified that serverless and sls were no longer referenced from command-line, and the binaries removed.

Next I just followed the npm install steps to install it globally. https://www.serverless.com/framework/docs/getting-started#via-npm

npm install -g serverless
npm update -g serverless # or upgrade

Tried my serverless.yml again, and there was no longer an issue. Hope this helps.