Open u-ecmaker opened 1 year ago
page_id, slug , google auth 問題
→ #41
run dev: error log
Expectation Violation: Duplicate atom key "inViewHeadingAtom". This is a FATAL ERROR in
production. But it is safe to ignore this warning if it occurred because of
hot module replacement.
at expectationViolation (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:671:19)
at checkForDuplicateAtomKey (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:752:9)
at registerNode (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:763:5)
at baseAtom (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:8347:16)
at atom (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:8399:12)
at eval (webpack-internal:///./src/recoil/atoms.ts:8:74)
at ./src/recoil/atoms.ts (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:627:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/notion/blocks/Heading2/Heading2.tsx:15:71)
at ./src/components/notion/blocks/Heading2/Heading2.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:418:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/notion/blocks/Heading2/index.ts:2:67)
at ./src/components/notion/blocks/Heading2/index.ts (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:429:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/notion/blockToJsx.tsx:15:74)
at ./src/components/notion/blockToJsx.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:275:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/features/notionBlog/PostContent/PostContent.tsx:7:87)
at ./src/components/features/notionBlog/PostContent/PostContent.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:209:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/features/notionBlog/PostContent/index.ts:2:70)
at ./src/components/features/notionBlog/PostContent/index.ts (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:220:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/@templates/PostDetailTemplate.tsx:11:90)
at __webpack_require__.a (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:97:13)
at eval (webpack-internal:///./src/components/@templates/PostDetailTemplate.tsx:1:21)
at ./src/components/@templates/PostDetailTemplate.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:154:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./pages/posts/[slug].tsx:20:88)
at __webpack_require__.a (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:97:13)
at eval (webpack-internal:///./pages/posts/[slug].tsx:1:21)
at ./pages/posts/[slug].tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:88:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at __webpack_exec__ (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:1307:39)
at C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:1308:28
at Object.<anonymous> (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:1311:3)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.requirePage (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\require.js:88:12)
at C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\load-components.js:48:73
at async Object.loadComponents (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\load-components.js:48:26)
at async DevServer.findPageComponents (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\next-server.js:563:36)
at async DevServer.findPageComponents (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\dev\next-dev-server.js:1041:20)
at async DevServer.renderPageComponent (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:951:24)
at async DevServer.renderToResponse (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:990:36)
at async DevServer.pipe (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:407:25)
wait - compiling /login...
event - compiled client and server successfully in 206 ms (1296 modules)
wait - compiling /...
event - compiled client and server successfully in 159 ms (1317 modules)
Expectation Violation: Duplicate atom key "inViewHeadingAtom". This is a FATAL ERROR in
production. But it is safe to ignore this warning if it occurred because of
hot module replacement.
at expectationViolation (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:671:19)
at checkForDuplicateAtomKey (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:752:9)
at registerNode (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:763:5)
at baseAtom (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:8347:16)
at atom (C:\Users\yuki\Documents\git\blog\node_modules\recoil\cjs\index.js:8399:12)
at eval (webpack-internal:///./src/recoil/atoms.ts:8:74)
at ./src/recoil/atoms.ts (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:627:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/notion/blocks/Heading2/Heading2.tsx:15:71)
at ./src/components/notion/blocks/Heading2/Heading2.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:418:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/notion/blocks/Heading2/index.ts:2:67)
at ./src/components/notion/blocks/Heading2/index.ts (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:429:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/notion/blockToJsx.tsx:15:74)
at ./src/components/notion/blockToJsx.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:275:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/features/notionBlog/PostContent/PostContent.tsx:7:87)
at ./src/components/features/notionBlog/PostContent/PostContent.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:209:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/features/notionBlog/PostContent/index.ts:2:70)
at ./src/components/features/notionBlog/PostContent/index.ts (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:220:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./src/components/@templates/PostDetailTemplate.tsx:11:90)
at __webpack_require__.a (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:97:13)
at eval (webpack-internal:///./src/components/@templates/PostDetailTemplate.tsx:1:21)
at ./src/components/@templates/PostDetailTemplate.tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:154:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at eval (webpack-internal:///./pages/posts/[slug].tsx:20:88)
at __webpack_require__.a (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:97:13)
at eval (webpack-internal:///./pages/posts/[slug].tsx:1:21)
at ./pages/posts/[slug].tsx (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:88:1)
at __webpack_require__ (C:\Users\yuki\Documents\git\blog\.next\server\webpack-runtime.js:33:42)
at __webpack_exec__ (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:1307:39)
at C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:1308:28
at Object.<anonymous> (C:\Users\yuki\Documents\git\blog\.next\server\pages\posts\[slug].js:1311:3)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.requirePage (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\require.js:88:12)
at C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\load-components.js:48:73
at async Object.loadComponents (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\load-components.js:48:26)
at async DevServer.findPageComponents (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\next-server.js:563:36)
at async DevServer.findPageComponents (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\dev\next-dev-server.js:1041:20)
at async DevServer.renderPageComponent (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:951:24)
at async DevServer.renderToResponse (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:990:36)
at async DevServer.pipe (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:407:25)
@notionhq/client warn: request fail {
code: 'validation_error',
message: 'body failed validation: body.parent.page_id should be a valid uuid, instead was `"relocation"`.'
}
error - APIResponseError: body failed validation: body.parent.page_id should be a valid uuid, instead was `"relocation"`.
at buildRequestError (C:\Users\yuki\Documents\git\blog\node_modules\@notionhq\client\build\src\errors.js:162:16)
at Client.request (C:\Users\yuki\Documents\git\blog\node_modules\@notionhq\client\build\src\Client.js:347:54)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createComment (webpack-internal:///(api)/./src/server/notion/comments.ts:21:43)
at async handler (webpack-internal:///(api)/./pages/api/notion-blog/comments.ts:19:29)
at async Object.apiResolver (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\api-utils\node.js:372:9)
at async DevServer.runApi (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\next-server.js:488:9)
at async Object.fn (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\next-server.js:751:37)
at async Router.execute (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\router.js:253:36)
at async DevServer.run (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:384:29)
at async DevServer.run (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\dev\next-dev-server.js:743:20)
at async DevServer.handleRequest (C:\Users\yuki\Documents\git\blog\node_modules\next\dist\server\base-server.js:322:20) {
code: 'validation_error',
status: 400,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
date: [Array],
'content-type': [Array],
'content-length': [Array],
connection: [Array],
'x-powered-by': [Array],
'x-notion-request-id': [Array],
etag: [Array],
vary: [Array],
'cf-cache-status': [Array],
'set-cookie': [Array],
server: [Array],
'cf-ray': [Array]
}
},
body: '{"object":"error","status":400,"code":"validation_error","message":"body failed validation: body.parent.page_id should be a valid uuid, instead was `\\"relocation\\"`.","request_id":"8f4368b8-b075-4a06-bf7a-c7c9ea8c211f"}',
page: '/api/notion-blog/comments'
}
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 233 ms (1283 modules)
[slug]内のPostDetailTemplate、コメントを精査