• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

8-17 claudia create 오류

19.07.11 17:32 작성 조회수 130

0

 sudo claudia create --region ap-northeast-2 --handler index.handler

packaging files npm install -q --no-audit --production

 

> sharp@0.22.1 install /tmp/ox1onV/nobird-lamda-1.0.0-sdbkRO/package/node_modules/sharp

> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

 

info sharp Using cached /root/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz

npm WARN nobird-lamda@1.0.0 No repository field.

 

validating package

Error: Service must be constructed with `new' operator

    at Object.Service (/tmp/ox1onV/nobird-lamda-1.0.0-sdbkRO/package/node_modules/aws-sdk/lib/service.js:25:28)

    at Object.features.constructor [as S3] (/tmp/ox1onV/nobird-lamda-1.0.0-sdbkRO/package/node_modules/aws-sdk/lib/util.js:624:24)

    at Object.<anonymous> (/tmp/ox1onV/nobird-lamda-1.0.0-sdbkRO/package/index.js:4:16)

    at Module._compile (internal/modules/cjs/loader.js:776:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)

    at Module.load (internal/modules/cjs/loader.js:653:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

    at Module.require (internal/modules/cjs/loader.js:690:17)

    at require (internal/modules/cjs/helpers.js:25:18)

cannot require ./index after clean installation. Check your dependencies.

root@ip-172-31-40-6:/home/ubuntu/nobird-react/lamda# 

root@ip-172-31-40-6:/home/ubuntu/nobird-react/lamda# sudo claudia create --region ap-northeast-2 --handler index.handler

packaging files npm install -q --no-audit --production

 

> sharp@0.22.1 install /tmp/hXIP6o/nobird-lamda-1.0.0-m6LF4H/package/node_modules/sharp

> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

 

답변 2

·

답변을 작성해보세요.

0

수윤민님의 프로필

수윤민

2019.07.13

1-4 Ant Design

index.js에서 AppLayout 을 import를 불러오질 못하고 아래와 같은 에러코드만 계속 해서 뜨고 있습니다 ㅠ 

 

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

0

에러 메시지에 new가 없다고 나오는데 new AWS.S3 안하셨나요?