본문 바로가기
IT/Python

pynecone get started - pc run error

by Jang HyunWoong 2023. 1. 16.

> pc run

...

 

> dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 4.4s (761 modules)
wait  - compiling /404 (client and server)...
event - compiled client and server successfully in 289 ms (765 modules)
warn  - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
wait  - compiling / (client and server)...
event - compiled client and server successfully in 570 ms (833 modules)
wait  - compiling /_error (client and server)...
warn  - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
error - node_modules\next\dist\client\link.js (216:22) @ Object.LinkComponent [as render]
error - Error: Multiple children were passed to <Link> with `href` of `https://pynecone.io/docs/getting-started/introduction` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children

 

 

[Solved]

1. find index.js file (go to .web folder --> pages folder)

2. add <dev></dev> tag into <Link>(here)</Link>

<Link sx={{"border": "0.1em solid", "padding": "0.5em", "borderRadius": "0.5em", "_hover": {"color": "rgb(107,99,246)"}}}>
{`Check out our docs!`}</Link></NextLink></VStack>
 
<Link sx={{"border": "0.1em solid", "padding": "0.5em", "borderRadius": "0.5em", "_hover": {"color": "rgb(107,99,246)"}}}>
<div>{`Check out our docs!`}</div></Link></NextLink></VStack>

3. rerun

반응형

'IT > Python' 카테고리의 다른 글

python re sub remove special characters  (0) 2022.11.17
aws s3 upload image using boto3, 이미지 올리기  (0) 2019.04.20
dataframe, head(), show all columns  (0) 2019.04.18
tensorflow Keras - not_equal, cast Test  (0) 2019.03.13
keras Masking Test  (0) 2019.03.13