chentsulin

chentsulin

Try everything with JavaScript!

Member Since 8 years ago

Taipei, Taiwan

Experience Points
1.6k
follower
Lessons Completed
571
follow
Lessons Completed
5.2k
stars
Best Reply Awards
339
repos

1420 contributions in the last year

Pinned
⚡ A Foundation for Scalable Cross-Platform Apps
⚡ A declarative, efficient, and flexible JavaScript library for building user interfaces.
⚡ Awesome list of GraphQL
⚡ ⚡️ A framework for building conversational user interfaces.
⚡ Create a GraphQL HTTP server with Koa.
⚡ Messaging APIs for multi-platform
Activity
Dec
3
7 hours ago
started
started time in 53 minutes ago
Dec
2
1 day ago
push

chentsulin push Yoctol/messaging-apis

chentsulin
chentsulin

refactor: subscription tests for MessengerClient

commit sha: d9edb1c7cc4ab566b641da49d46175a8d891cf0e

push time in 19 hours ago
Activity icon
delete
deleted time in 22 hours ago
pull request

chentsulin pull request contra/graphql-helix

chentsulin
chentsulin

chore: fix a broken link in README

https://github.com/contra/graphql-helix/blob/master/packages/core/examples is not the right link for the examples.

push

chentsulin push chentsulin/graphql-helix

chentsulin
chentsulin

chore: fix a broken link in README

commit sha: 9796f2e92fa46ce7bd022ed1176d18c5e2b20204

push time in 1 day ago
Activity icon
fork

chentsulin forked contra/graphql-helix

⚡ A highly evolved GraphQL HTTP Server 🧬
chentsulin MIT License Updated
fork time in 1 day ago
Dec
1
2 days ago
push

chentsulin push Yoctol/messaging-apis

chentsulin
chentsulin

refactor: assets, identity, insights tests for MessengerClient

commit sha: 8a65f6431458160c3bf9539d32ec540b1e12995a

push time in 1 day ago
started
started time in 2 days ago
started
started time in 2 days ago
started
started time in 2 days ago
Activity icon
issue

chentsulin issue comment vercel/next.js

chentsulin
chentsulin

500 Error can not use getInitialProps with getStaticProps after updated react 18, next 12

What version of Next.js are you using?

12.0.4

What version of Node.js are you using?

16.13.0

What browser are you using?

chrome

What operating system are you using?

macOS

How are you deploying your application?

next dev

Describe the Bug

I updated react to version 0.0.0-experimental-149b420f6-20211119 (I heard it as a newest experimantal version, 18) due to use a suspense for my project. (I don't have a plan to use a server component).

So I followed all the steps React 18 And also I updated next to v12

But I couldn't get a beta version through npm install [email protected] [email protected] [email protected] so I tried like this way npm install [email protected] [email protected] --save --legacy-peer-deps

And I added a

module.exports = {
  experimental: {
    concurrentFeatures: true
  }
}

Eventually I encountered all this error in every page. Error: You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps / in main page, Error: 'getInitialProps' in Document component is not supported with 'concurrentFeatures' enabled. in another pages. I don't use any getInitialProps in my project.

Expected Behavior

I think there could be some error in downloading a react 18 I mentioned.

To Reproduce

image image

pull request

chentsulin pull request vercel/next.js

chentsulin
chentsulin

Allow pre-release React 18 as peer

As of now, there's no released React version is covered by ^18.0.0 range.

For example: 18.0.0-beta-0cc724c77-20211125 < 18.0.0

So, including pre-release to the range looks reasonable to me.

push

chentsulin push chentsulin/next.js

chentsulin
chentsulin

Allow pre-release React 18 as peer

commit sha: d8076d3c9ba4391713fd7999ff39365b93efe247

push time in 2 days ago
Nov
30
3 days ago
push

chentsulin push Yoctol/messaging-apis

chentsulin
chentsulin

refactor: nlp tests for MessengerClient

commit sha: 8d55f47bf3aa462a3e9adeaec1f351d900c2fe05

push time in 2 days ago
pull request

chentsulin pull request Yoctol/bottender

chentsulin
chentsulin

replace LINE Bot with LINE OA

replace LINE Bot with LINE OA

Activity icon
delete

chentsulin in Yoctol/bottender delete branch emulator

deleted time in 2 days ago
pull request

chentsulin pull request Yoctol/bottender

chentsulin
chentsulin

feat(emulator): add emulator packages

This PR is the workspace for the emulator experiment.

push

chentsulin push Yoctol/messaging-apis

chentsulin
chentsulin

refactor: insights tests for MessengerClient

commit sha: c1a920e2c2241648eb6ee4c0c2d515ae05719576

push time in 2 days ago
push

chentsulin push Yoctol/messaging-apis

chentsulin
chentsulin

refactor: persona tests for MessengerClient

commit sha: c7380abd0ce4f49ab767ec018d8aa37d934b97e0

push time in 2 days ago
push

chentsulin push Yoctol/messaging-apis

chentsulin
chentsulin

refactor: profile tests for MessengerClient

commit sha: aec36ac1b86bc0e2adb8cca2df13d15cc612b298

push time in 2 days ago
started
started time in 3 days ago
Activity icon
issue

chentsulin issue comment vercel/next.js

chentsulin
chentsulin

500 Error can not use getInitialProps with getStaticProps after updated react 18, next 12

What version of Next.js are you using?

12.0.4

What version of Node.js are you using?

16.13.0

What browser are you using?

chrome

What operating system are you using?

macOS

How are you deploying your application?

next dev

Describe the Bug

I updated react to version 0.0.0-experimental-149b420f6-20211119 (I heard it as a newest experimantal version, 18) due to use a suspense for my project. (I don't have a plan to use a server component).

So I followed all the steps React 18 And also I updated next to v12

But I couldn't get a beta version through npm install [email protected] [email protected] [email protected] so I tried like this way npm install [email protected] [email protected] --save --legacy-peer-deps

And I added a

module.exports = {
  experimental: {
    concurrentFeatures: true
  }
}

Eventually I encountered all this error in every page. Error: You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps / in main page, Error: 'getInitialProps' in Document component is not supported with 'concurrentFeatures' enabled. in another pages. I don't use any getInitialProps in my project.

Expected Behavior

I think there could be some error in downloading a react 18 I mentioned.

To Reproduce

image image

chentsulin
chentsulin

I can reproduce this error by using the official example:

npx [email protected] -e custom-server-express custom-server

With the following settings:

next.config.js -

module.exports = {
  experimental: {
    concurrentFeatures: true,
  },
}

dependencies -

    "next": "12.0.5-canary.11",
    "react": "^18.0.0-beta-0cc724c77-20211125",
    "react-dom": "^18.0.0-beta-0cc724c77-20211125"

Then, execute npm run dev:

截圖 2021-11-30 下午2 38 49

image

started
started time in 3 days ago
started
started time in 3 days ago
started
started time in 3 days ago
started
started time in 3 days ago
Previous