• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Next.js 게시판 npm run dev 오류

npm run dev 오류

  • 이 주제에는 1개 답변, 2명 참여가 있으며 codingapple2 년 전에 전에 마지막으로 업데이트했습니다.
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #87076

    김태현
    참가자
    > forum@0.1.0 build
    > next build
    - info Loaded env from /Users/mac/Desktop/62savage/nextJS/forum/.env
    - info Creating an optimized production build  
    - info Compiled successfully
    - info Linting and checking validity of types  
    - info Collecting page data ../Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v19.2.0
    Static worker unexpectedly exited with code: 1 and signal: null
    Static worker unexpectedly exited with code: 1 and signal: null
    Static worker unexpectedly exited with code: 1 and signal: null
    - info Collecting page data ./Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v19.2.0
    Static worker unexpectedly exited with code: 1 and signal: null
    - info Collecting page data ./Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Node.js v19.2.0
    - info Collecting page data  
    [    ] - info Generating static pages (0/7)/Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    [=   ] - info Generating static pages (3/7)/Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521
            const _db = (await client).db(options.databaseName);
                                       ^
    TypeError: Cannot read properties of undefined (reading 'db')
        at /Users/mac/Desktop/62savage/nextJS/forum/.next/server/chunks/718.js:6521:36
    Node.js v19.2.0
    > Build error occurred
    Error: Call retries were exceeded
        at ChildProcessWorker.initialize (/Users/mac/Desktop/62savage/nextJS/forum/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
        at ChildProcessWorker._onExit (/Users/mac/Desktop/62savage/nextJS/forum/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
        at ChildProcess.emit (node:events:513:28)
        at ChildProcess.emit (node:domain:489:12)
        at ChildProcess._handle.onexit (node:internal/child_process:293:12) {
      type: 'WorkerError'
    }
    [    ] - info Generating static pages (3/7)%
    
    
    npm run dev 하면 해당 오류가 뜹니다.. 강의 위주로 따라갔던 것 같은데 혹시 왜 그런지 아실까요?
    #87086

    codingapple
    키 마스터
    .db 왼쪽에 await client가 undefined라는데 database.js 잘있나 확인합시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠