craigary / nobelium Goto Github PK
View Code? Open in Web Editor NEWA static blog build on top of Notion and NextJS, deployed on Vercel.
Home Page: https://nobelium.js.org
License: MIT License
A static blog build on top of Notion and NextJS, deployed on Vercel.
Home Page: https://nobelium.js.org
License: MIT License
Describe the bug
A clear and concise description of what the bug is.
images failed to load
To Reproduce
Steps to reproduce the behavior:
insert a photo in Notion, then in nobelium it doesn't show as expected
Expected behavior
A clear and concise description of what you expected to happen.
show pics as in Notion
Screenshots
If applicable, add screenshots to help explain your problem.
Platform:
macOS firefox
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
Notion uses [[ or @ to refer another pages. However, I find the nobelium could not conversion the notion links if it is refer to another posts within the blog. At the moment, it just jumps into notion pages.
Describe the solution you'd like
When I click the link, it could jumps into the correct post.
Describe the bug
The Less code block do not display, If I turn the less or css block to text or qoute, It can be render correctly.
images follow:
The original notion page:
https://www.notion.so/Vue-Js-Loading-40d9bae0cef64fb2bf1a7280b10141e1
The web page with error:
https://blog.432000.xyz/vue-loading-mask
To Reproduce
copy a less code to notion, turn it to code block, select code type as 'less'
Expected behavior
A clear and concise description of what you expected to happen.
Platform:
Additional context
Add any other context about the problem here.
Platform:
Dockerfile:
FROM node:14.13.0-alpine3.12
WORKDIR /app
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk add tzdata git && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata && \
git clone https://github.com/craigary/nobelium.git
WORKDIR /app/nobelium
COPY . .
ENV NOTION_PAGE_ID XXXXXXXX
RUN npm install && \
npm run build
CMD npm run start
错误信息:
> Build error occurred
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /app/nobelium/node_modules/react-notion-x/build/cjs/index.js
require() of ES modules is not supported.
require() of /app/nobelium/node_modules/react-notion-x/build/cjs/index.js from /app/nobelium/.next/server/pages/[slug].js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /app/nobelium/node_modules/react-notion-x/package.json.
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1102:13)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:791:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.R1xE (/app/nobelium/.next/server/pages/[slug].js:901:18)
at __webpack_require__ (/app/nobelium/.next/server/pages/[slug].js:29:31)
at Module.Ritt (/app/nobelium/.next/server/pages/[slug].js:934:32)
at __webpack_require__ (/app/nobelium/.next/server/pages/[slug].js:29:31)
at Object.0 (/app/nobelium/.next/server/pages/[slug].js:136:18) {
type: 'NodeError',
code: 'ERR_REQUIRE_ESM'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `next build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-04-07T08_57_55_151Z-debug.log
Describe the bug
yarn build
will yield TypeError: Cannot read property '0' of undefined
for some pages/blocks.
To Reproduce
Take this page for example, above error will occur.
One special thing about this page is that it was imported from a markdown file using md2notion, and the rendering error came out from react-notion-x at Block level(see screenshot bellow), so it might be an issue from upstream? Can you guide me about how to fix it or looking for futher help? Thanks in advance.
Expected behavior
No such errors.
Screenshots
Platform:
Additional context
Add any other context about the problem here.
as what I said , insert table-inline ,would not work!
has any solution?
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
I basically replicated what @GermanHeim did with Spanish but when I generate my website, only the next.js part is translated, and what is in lang.js js ignored. So before doing my PR I would like to make it work ;)
lang: 'fr-CA', // ['en-US', 'zh-CN', 'zh-HK', 'zh-TW', 'ja-JP', 'es-ES', 'fr-FR', 'fr-CA']
fr: {
NAV: {
INDEX: 'Blog',
RSS: 'RSS',
SEARCH: 'Chercher',
ABOUT: 'À propos'
},
PAGINATION: {
PREV: 'Précédent',
NEXT: 'Suivant'
},
POST: {
BACK: 'Retour',
TOP: 'Haut'
}
}
...
case 'fr':
case 'fr-CA':
case 'fr-FR':
return lang.fr
14:19:43.099
Build error occurred
14:19:43.102
TypeError: Cannot read property 'value' of undefined
14:19:43.102
at getAllPosts (/vercel/path0/.next/server/chunks/440.js:149:33)
14:19:43.102
at processTicksAndRejections (internal/process/task_queues.js:93:5)
14:19:43.102
at async getAllTags (/vercel/path0/.next/server/chunks/440.js:193:20)
14:19:43.102
at async getStaticPaths (/vercel/path0/.next/server/pages/tag/[tag].js:53:16)
14:19:43.102
at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:16:80)
14:19:43.102
at async /vercel/path0/node_modules/next/dist/build/utils.js:26:622
14:19:43.102
at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:6:584) {
14:19:43.102
type: 'TypeError'
14:19:43.102
}
14:19:43.151
error Command failed with exit code 1.
14:19:43.151
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
14:19:43.175
Error: Command "yarn run build" exited with 1
exp & Describe the bug & Screenshots :
Platform:
so i can share the blog with people who can enter the right password instead of showing to public?
Is your feature request related to a problem? Please describe.
Gitalk and utterances are great, but they (ab)use GitHub Issues. Given enough time, they would flood the repository's issues.
Describe the solution you'd like
Add support for giscus, a comments widget powered by GitHub Discussions.
Describe alternatives you've considered
None.
Additional context
None.
Thanks!
I have the following errors in the deployment of vercel, which lead to the correct deployment. I hope you can solve my problems. Thank you very much
18:39:32.295 | pageId "7a69a86e-a02c-4505-880c-82b1b02ba7cb" is not a database |
---|---|
18:39:32.296 | > Build error occurred |
18:39:32.298 | TypeError: Cannot read property 'filter' of null |
18:39:32.298 | at getStaticPaths (/vercel/path0/.next/server/pages/page/[page].js:69:17) |
18:39:32.299 | at processTicksAndRejections (internal/process/task_queues.js:93:5) |
18:39:32.299 | at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:16:80) |
18:39:32.299 | at async /vercel/path0/node_modules/next/dist/build/utils.js:26:622 |
18:39:32.299 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:6:584) { |
18:39:32.299 | type: 'TypeError' |
18:39:32.299 | } |
18:39:32.345 | error Command failed with exit code 1. |
18:39:32.345 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
18:39:32.363 | Error: Command "yarn run build" exited with 1 |
Describe the bug
Notion support adding caption for audio embedded but nobelium can't show it in article. The image caption in contrast doesn't have this problem.
08:38:24 | > Build error occurred |
---|---|
08:38:24 | Error [HTTPError]: Response code 400 (Bad Request) |
08:38:24 | at Request. (/vercel/path0/node_modules/got/dist/source/as-promise/index.js:117:42) |
08:38:24 | at processTicksAndRejections (internal/process/task_queues.js:93:5) { |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform:
Additional context
Add any other context about the problem here.
notion page id:3ca0bcb51d224af9b020bad4fa1142a0
15:53:47 | Cloning github.com/neo4dev/nobelium (Branch: main, Commit: 8e36743) |
---|---|
15:53:47 | Cloning completed: 656.02ms |
15:53:47 | Analyzing source code... |
15:53:48 | Installing build runtime... |
15:53:50 | Build runtime installed: 1.952s |
15:53:52 | Looking up build cache... |
15:53:53 | Build cache not found |
15:53:54 | Installing dependencies... |
15:53:54 | yarn install v1.22.10 |
15:53:54 | [1/4] Resolving packages... |
15:53:54 | [2/4] Fetching packages... |
15:54:07 | info [email protected]: The platform "linux" is incompatible with this module. |
15:54:07 | info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. |
15:54:07 | [3/4] Linking dependencies... |
15:54:07 | warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || 15.x.x". |
15:54:07 | warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || 15.x.x". |
15:54:07 | warning "react-notion-x > [email protected]" has unmet peer dependency "@babel/runtime@>=7". |
15:54:07 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^15 || ^16". |
15:54:07 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^15 || ^16". |
15:54:07 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^16.3.0". |
15:54:07 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^16.3.0". |
15:54:07 | warning "react-notion-x > react-pdf > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0-alpha.0 || ^4.0.0". |
15:54:07 | warning "react-notion-x > react-pdf > pdfjs-dist > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0-alpha.0 || ^4.0.0". |
15:54:07 | warning " > [email protected]" has incorrect peer dependency "eslint-plugin-promise@^4.2.1". |
15:54:17 | [4/4] Building fresh packages... |
15:54:17 | Done in 23.42s. |
15:54:17 | Detected Next.js version: 10.2.2 |
15:54:17 | Running "yarn run build" |
15:54:18 | yarn run v1.22.10 |
15:54:18 | $ next build |
15:54:18 | info - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5 |
15:54:19 | Attention: Next.js now collects completely anonymous telemetry regarding usage. |
15:54:19 | This information is used to shape Next.js' roadmap and prioritize features. |
15:54:19 | You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: |
15:54:19 | https://nextjs.org/telemetry |
15:54:19 | info - Checking validity of types... |
15:54:19 | info - Creating an optimized production build... |
15:54:48 | info - Compiled successfully |
15:54:48 | info - Collecting page data... |
15:54:49 | pageId "3ca0bcb5-1d22-4af9-b020-bad4fa1142a0" is not a database |
15:54:49 | > Build error occurred |
15:54:49 | TypeError: Cannot read property 'filter' of null |
15:54:49 | at getAllTags (/vercel/path0/.next/server/chunks/440.js:194:26) |
15:54:49 | at processTicksAndRejections (internal/process/task_queues.js:93:5) |
15:54:49 | at async getStaticPaths (/vercel/path0/.next/server/pages/tag/[tag].js:53:16) |
15:54:49 | at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:16:80) |
15:54:49 | at async /vercel/path0/node_modules/next/dist/build/utils.js:26:622 |
15:54:49 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:6:584) { |
15:54:49 | type: 'TypeError' |
15:54:49 | } |
15:54:49 | error Command failed with exit code 1. |
15:54:49 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
15:54:49 | Error: Command "yarn run build" exited with 1 |
Describe the bug
I set the sortByDate to true in blog.config.js and find my blog posts don't sort by date.
To Reproduce
My blog link:
https://invisprints.vercel.app
GitHub repo:
https://github.com/invisprints/nobelium
Notion Page:
https://www.notion.so/c23506baa9334516ad2fb7f684cc37d1?v=60fbc9083a6d42328f314aa4ad120982
The nobelium version I use is [4bcc8b9]
Screenshots
Platform:
Describe the bug
Code area in li tag will expand the width of device, so the mobile device to be unable to view normally
Expected behavior
Wish the max width will be restricted
Platform:
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
well, I'm always frustrated when i see gitalk not utteranc.es
Describe the solution you'd like
A clear and concise description of what you want to happen.
add utteranc.es
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
set utteranc.es as the default provider
Additional context
Add any other context or screenshots about the feature request here.
/
Describe the bug
A clear and concise description of what the bug is.
i can see two utterances comment section below the post
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
one comment section
Screenshots
If applicable, add screenshots to help explain your problem.
Platform:
macOS firefox/safari
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
It's hard to read without outline(or table of content?) when i wrote a long post.
Describe the solution you'd like
I think a sider outline will be good likes other blog.
Describe alternatives you've considered
I am a fans of Notion but i hate there is no a TOC always be there.
I work with Notion on Edge through the plugin named notion-boost.
it help me to generate a outline on the right side.
maybe it can help
Additional context
i think nobelium is cool and i love it,but i am a backend developer so i could not to make it better....holp you can see this,,,,thanks
Hi, sometimes when I add a new record in the Notion and then delete it. Later, I add a record which contains some same slug of the deleted record. In this case, I click the new blog in the homepage, the details page does not update, which is still the deleted blog.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
Vercel在大陆被墙
Describe the solution you'd like
Serverless、docker等
Describe alternatives you've considered
Additional context
When i deploy the blog ,i got the wrong info
18:44:27.890 | NotionAPI collectionQuery error Response code 400 (Bad Request)
-- | --
18:44:27.892 | > Build error occurred
18:44:27.894 | TypeError: Cannot convert undefined or null to object
18:44:27.895 | at Function.values (<anonymous>)
18:44:27.895 | at getAllPageIds (/vercel/path0/.next/server/chunks/272.js:37:12)
18:44:27.896 | at getAllPosts (/vercel/path0/.next/server/chunks/272.js:186:21)
18:44:27.896 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
18:44:27.896 | at async getStaticPaths (/vercel/path0/.next/server/pages/tag/[tag].js:54:17)
18:44:27.896 | at async buildStaticPaths (/vercel/path0/node_modules/next/dist/build/utils.js:472:31)
18:44:27.897 | at async /vercel/path0/node_modules/next/dist/build/utils.js:615:119
18:44:27.897 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:60:20) {
18:44:27.897 | type: 'TypeError'
18:44:27.897 | }
18:44:27.954 | error Command failed with exit code 1.
18:44:27.955 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
18:44:27.985 | Error: Command "yarn run build" exited with 1
Describe the bug
please this issue #158
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform:
Additional context
Add any other context about the problem here.
Describe the bug
Gitalk Componment not refreshed and still showed the comments on the previous page.
It will show correctly when you refresh whole page.
To Reproduce
Click on Page A to load the comments,then click page B
Expected behavior
Show the correct comments on the page
Screenshots
https://www.v2ca.ca/EE
Platform:
Additional context
N/A
Describe the bug
The embedded item (iframe) inside unable 100% width
To Reproduce
Steps to reproduce the behavior:
Example of Spotify Web Player
Expected behavior
Show in 100% width.
Platform:
Describe the bug
A clear and concise description of what the bug is.
Syntax highlighting disappears due to refresh.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Syntax highlighting outlives refresh
Screenshots
If applicable, add screenshots to help explain your problem.
Platform:
iOS Firefox and other environments
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
Hope for adding support for serif font in the notion page configuration. It's a very beautiful font for publishing-like page, especially for articles written in Chinese or Japanese characters.
Describe the solution you'd like
Is possible to get the font configuration of certain notion pages and choose different fonts. Just like nobelium can use different page layout according to the notion's Full-width
option.
Describe alternatives you've considered
A font type property (e.g default or serif) assigned to every pages can be an alternative but less graceful.
Vercel Deployment error: Error: Command "next build" exited with 1
😀你好,按照教程安装部署:
报错如下😒:
BRANCH
main
`0cbac81 — :bug: Fix notion.js`
14:12:42.825 | warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] \|\| 0.14.x \|\| 15.x.x".
-- | --
14:12:42.825 | warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] \|\| 0.14.x \|\| 15.x.x".
14:12:42.827 | warning "react-notion-x > [email protected]" has unmet peer dependency "@babel/runtime@>=7".
14:12:42.828 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^15 \|\| ^16".
14:12:42.828 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^15 \|\| ^16".
14:12:42.828 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^16.3.0".
14:12:42.829 | warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^16.3.0".
14:12:42.830 | warning "react-notion-x > react-pdf > [email protected]" has unmet peer dependency "webpack@^3.0.0 \|\| ^4.0.0-alpha.0 \|\| ^4.0.0".
14:12:42.830 | warning "react-notion-x > react-pdf > pdfjs-dist > [email protected]" has unmet peer dependency "webpack@^3.0.0 \|\| ^4.0.0-alpha.0 \|\| ^4.0.0".
14:13:29.751 | > Build error occurred
-- | --
14:13:29.755 | Error [HTTPError]: Response code 400 (Bad Request)
14:13:29.756 | at Request.<anonymous> (/vercel/workpath0/node_modules/got/dist/source/as-promise/index.js:117:42)
14:13:29.756 | at processTicksAndRejections (internal/process/task_queues.js:93:5) {
14:13:29.819 | error Command failed with exit code 1.
-- | --
14:13:29.841 | Error: Command "yarn run build" exited with 1
-- | --
请求支援🙋
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
现在的评论插件的ID是明文存放在仓库中,有泄漏风险
Describe the solution you'd like
A clear and concise description of what you want to happen.
可以将评论插件的ID做成secret,以免被他人滥用
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Describe the bug
The TOC will not be displayed if it is placed on the left side so that it is in the left and right columns with the text.
To Reproduce
Placing the TOC and the title left and right will produce.
Expected behavior
TOC can display correctly.
Platform:
Additional context
N/A
i keep failing the deployment
is there anything i missed in the config,js?
Describe the bug
doesn't build
To Reproduce
Expected behavior
I must see my notion mirror site
Platform:
Additional context
repo: https://github.com/a-x-/nobelium
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
for existing comment provider, like gitalk, utterances, cusdis, those was not support Anonymous
+ Immediate
comment.
Describe the solution you'd like
I would like to recommend a new comment provider, named valine
Describe alternatives you've considered
N/A
Additional context
https://valine.js.org/en/index.html
Couldn't get nobelium deployed after modified blog.config.js.
Then I reverted the commit and deployed again, but the same error ensued.
Command "yarn run build" exited with 1
Full build log attached.
build.log
Describe the bug
A clear and concise description of what the bug is.
when I change appearance
from auto
to light
, the text colour is still in dark mode, which is light grey, but it's supposed to be black, as in the light mode.
To Reproduce
Steps to reproduce the behavior:
appearance
to light
in blog.config.js
Appearance
to Light
in macOS System Preferences/GeneralAppearance
to Dark
in macOS System Preferences/GeneralExpected behavior
A clear and concise description of what you expected to happen.
test colour should be black when appearance
is light
Screenshots
If applicable, add screenshots to help explain your problem.
Platform:
macOS firefox/safari (irrelevant)
Additional context
Add any other context about the problem here.
部署日志:
09:47:48.496 Cloning github.com/yefoenix/nobelium (Branch: main, Commit: 1a56904)
09:47:49.075 Cloning completed in 579ms
09:47:49.078 Analyzing source code...
09:47:49.481 Installing build runtime...
09:47:51.398 Build runtime installed: 1916.795ms
09:47:53.147 Build cache not provided
09:47:53.876 Installing dependencies...
09:47:54.221 yarn install v1.22.10
09:47:54.286 [1/4] Resolving packages...
09:47:54.535 [2/4] Fetching packages...
09:48:06.916 info [email protected]: The platform "linux" is incompatible with this module.
09:48:06.916 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
09:48:06.926 [3/4] Linking dependencies...
09:48:06.927 warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || 15.x.x".
09:48:06.928 warning "gitalk > [email protected]" has incorrect peer dependency "[email protected] || 0.14.x || 15.x.x".
09:48:06.929 warning "react-notion-x > [email protected]" has unmet peer dependency "@babel/runtime@>=7".
09:48:06.929 warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^15 || ^16".
09:48:06.929 warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^15 || ^16".
09:48:06.930 warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^16.3.0".
09:48:06.930 warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^16.3.0".
09:48:06.930 warning "react-notion-x > react-pdf > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0-alpha.0 || ^4.0.0".
09:48:06.931 warning "react-notion-x > react-pdf > pdfjs-dist > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0-alpha.0 || ^4.0.0".
09:48:16.959 [4/4] Building fresh packages...
09:48:18.195 Done in 23.98s.
09:48:18.223 Detected Next.js version: 10.0.7
09:48:18.224 Running "yarn run build"
09:48:18.486 yarn run v1.22.10
09:48:18.511 $ next build
09:48:19.083 info - Creating an optimized production build...
09:48:19.100 Attention: Next.js now collects completely anonymous telemetry regarding usage.
09:48:19.100 This information is used to shape Next.js' roadmap and prioritize features.
09:48:19.100 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
09:48:19.100 https://nextjs.org/telemetry
09:48:20.012 info - Using external babel configuration from /vercel/workpath0/.babelrc.js
09:48:20.437 [styled-jsx] Loading plugin from path: /vercel/workpath0/node_modules/styled-jsx-plugin-postcss/index.js
09:48:40.270 info - Compiled successfully
09:48:40.271 info - Collecting page data...
09:48:41.508 info - Generating static pages (0/37)
09:48:43.385 info - Generating static pages (9/37)
09:48:44.045 Unhandled error during request: TypeError: Cannot read property 'id' of undefined
09:48:44.046 at getStaticProps (/vercel/workpath0/.next/serverless/pages/[slug].js:1746:71)
09:48:44.046 at runMicrotasks ()
09:48:44.046 at processTicksAndRejections (internal/process/task_queues.js:93:5)
09:48:44.046 at async renderToHTML (/vercel/workpath0/node_modules/next/dist/next-server/server/render.js:28:109)
09:48:44.046 at async renderReqToHTML (/vercel/workpath0/.next/serverless/pages/[slug].js:873:334)
09:48:44.046 at async /vercel/workpath0/node_modules/next/dist/export/worker.js:12:92
09:48:44.046 at async /vercel/workpath0/node_modules/next/dist/build/tracer.js:3:470
09:48:44.046 Error occurred prerendering page "/null". Read more: https://err.sh/next.js/prerender-error
09:48:44.046 TypeError: Cannot read property 'id' of undefined
09:48:44.046 at getStaticProps (/vercel/workpath0/.next/serverless/pages/[slug].js:1746:71)
09:48:44.046 at runMicrotasks ()
09:48:44.046 at processTicksAndRejections (internal/process/task_queues.js:93:5)
09:48:44.046 at async renderToHTML (/vercel/workpath0/node_modules/next/dist/next-server/server/render.js:28:109)
09:48:44.047 at async renderReqToHTML (/vercel/workpath0/.next/serverless/pages/[slug].js:873:334)
09:48:44.047 at async /vercel/workpath0/node_modules/next/dist/export/worker.js:12:92
09:48:44.047 at async /vercel/workpath0/node_modules/next/dist/build/tracer.js:3:470
09:48:45.112 info - Generating static pages (18/37)
09:48:46.419 info - Generating static pages (27/37)
09:48:47.663 info - Generating static pages (37/37)
09:48:47.663 > Build error occurred
09:48:47.665 Error: Export encountered errors on following paths:
09:48:47.665 /null
09:48:47.665 at /vercel/workpath0/node_modules/next/dist/export/index.js:30:1103
09:48:47.665 at async /vercel/workpath0/node_modules/next/dist/build/tracer.js:3:470
09:48:47.665 at async /vercel/workpath0/node_modules/next/dist/build/index.js:39:69
09:48:47.665 at async /vercel/workpath0/node_modules/next/dist/build/tracer.js:3:470
09:48:47.665 at async /vercel/workpath0/node_modules/next/dist/build/index.js:21:731
09:48:47.665 at async /vercel/workpath0/node_modules/next/dist/build/tracer.js:3:470
09:48:47.727 error Command failed with exit code 1.
09:48:47.727 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
09:48:47.739 Error: Command "yarn run build" exited with 1
09:48:50.320 Done with "package.json"
blog config:https://github.com/yefoenix/nobelium/blob/main/blog.config.js
notion 页面地址:https://www.notion.so/e7988de46ee34a78872ed12fb74f58eb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.