인프런 커뮤니티 질문&답변

kwanho jo님의 프로필 이미지
kwanho jo

작성한 질문수

React로 NodeBird SNS 만들기

8-17. lambda 배포와 마무리

8-17 claudia create 오류

작성

·

179

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

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 안하셨나요?

kwanho jo님의 프로필 이미지
kwanho jo

작성한 질문수

질문하기