Product undefined 오류 왜 나는지 모르겠습니다
227
작성한 질문수 5
안녕하세요 선생님 강의 너무 잘 듣고 있습니다.
LandingPage에서 카드 UI만드는 과정 듣고 있는데
Product is not defined 라는 오류가 뜨는데 왜 나오는지 모르겠습니다.
아래에는 오류 메세지와 LandingPage 작성 코드 입니다.
[nodemon] restarting due to changes...
[1] Compiling...
[0] [nodemon] starting `node server/index.js`
[1] Failed to compile.
[1]
[1] ./src/components/views/LandingPage/LandingPage.js
[1] Line 26:25: 'Products' is not defined no-undef
[1]
[1] Search for the keywords to learn more about each error.
[0] (node:7828) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
[0] (Use `node --trace-warnings ...` to show where the warning was created)
[0] (node:7828) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
[0] (node:7828) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
[0] Server Listening on 5000
[0] (node:7828) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
[0] MongooseError [MongooseServerSelectionError]: connection <monitor> to 52.220.203.202:27017 closed
[0] at new MongooseServerSelectionError (C:\Users\ADMIN\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\error\serverSelection.js:22:11)
[0] at NativeConnection.Connection.openUri (C:\Users\ADMIN\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\connection.js:823:32)
[0] at Mongoose.connect (C:\Users\ADMIN\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\index.js:333:15)
[0] at Object.<anonymous> (C:\Users\ADMIN\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\server\index.js:19:26)
[0] at Module._compile (internal/modules/cjs/loader.js:1063:30)
[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
[0] at Module.load (internal/modules/cjs/loader.js:928:32)
[0] at Function.Module._load (internal/modules/cjs/loader.js:769:14)
[0] at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
[0] at internal/main/run_main_module.js:17:47 {
[0] reason: TopologyDescription {
[0] type: 'ReplicaSetNoPrimary',
[0] setName: null,
[0] maxSetVersion: null,
[0] maxElectionId: null,
[0] servers: Map(3) {
[0] 'shop-shard-00-02.0vwa9.mongodb.net:27017' => [ServerDescription],
[0] 'shop-shard-00-01.0vwa9.mongodb.net:27017' => [ServerDescription],
[0] 'shop-shard-00-00.0vwa9.mongodb.net:27017' => [ServerDescription]
[0] },
[0] stale: false,
[0] compatible: true,
============================================================================================
[0] compatibilityError: null,
[0] logicalSessionTimeoutMinutes: null,
[0] heartbeatFrequencyMS: 10000,
[0] localThresholdMS: 15,
[0] commonWireVersion: null
[0] },
[0] [Symbol(mongoErrorContextSymbol)]: {}
[0] }
답변 1
0
notbackdown님 안녕하세요 ~~~ 보시면 스펠링에 오타가 있습니다 ~~~ 스펠링 체크해주시면 됩니다 ~
근데 몽고DB 연결도 안된것 같은데요?! 그 두부분 체크해주셔야 할 것 같습니다 !
강의 내용은 훌륭하나, 환경 설정 오류 때문에 진도를 나갈 수 없습니다. 20년 버전 강의.
0
60
1
강의자료는 어디서 볼 수있나요??
0
66
1
이 쇼핑몰 만들기 강의는 관리자페이지 만드는건 없나요
0
113
2
웹에서 실시간 코드반영이 안돼요
0
120
1
app.use질문
0
64
1
강사님께 어떻게 직접질문할수있어요??
0
75
1
const함수같은거 기초강의는 어디있나요
0
81
2
리덕스 참조챕터가 어딨어요? 미리듣고오라는데요
0
81
2
강의가완전 오래되서 다 틀리네 app.jsx도 tailwind css 다틀림 무책임함
0
68
1
개발자도구에 redux란이 없어요
0
87
1
npx tailwindcss init -p 에서 계속 에러나요
0
92
1
쇼핑몰기능중 찜하기 기능은 어떻게 구현하나요
0
138
2
강의하다 줌으로 설명가능한지좀 정확히 알려주세요. 이 선생님 정책이 어떻게 되는데요. 직접 연락할 메일이라도 알려주세요
0
42
1
도표 강의 자료 열람 불가능
0
109
1
tailwindcss를 vite에서 이용하는 방식이 바뀐것 같습니다.
0
1130
2
eslint 설정 후 오류가 납니다.
0
221
1
오버로드 오류
0
149
1
VSCode에서 save를 할 때, landingpage의 useEffect가 실행되는 문제에 대하여
0
169
1
dispatch(logoutUser()) 실행시 dispatch(authuser())도 함께 실행되는 문제
0
228
2
logout할 때, server로 요청을 보내서 authUser middleware를 통과하도록 하는 이유?
0
195
1
webkit-text-size-adjust 오류
0
314
1
does not provide an export named 'userReducer'
0
216
2
빌드 배포
0
140
1
삭제 예정 강의는 언제 삭제 되나요? 저것때문에 수강완료를 못하면 회사에서 비용을 청구한다고 합니다~
0
220
2





