reflex-dev / reflex

πŸ•ΈοΈ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
20.24k stars 1.16k forks source link

"pc run" with error message on Mac #598

Closed korea7030 closed 1 year ago

korea7030 commented 1 year ago

Describe the bug I got message "TypeError: Cannot read property 'version' of undefined"

Expected behavior typing "pc run". but not working with error message.

Screenshots 스크란샷 2023-02-24 α„‹α…©α„Œα…₯ᆫ 10 29 55

Specifics (please complete the following information):

picklelo commented 1 year ago

Could you try downgrading your bun to v0.5.5? We saw some issues with this version

chrswp commented 1 year ago

I also have same problem. OS Linux Debian 11 Python 3.9 Pynecone 0.1.18

Screenshot from 2023-02-24 18-40-05

PoshoDev commented 1 year ago

I want to weigh in as well since this is happening to me too. I was having my terminal getting frozen at bun install v0.5.7 (5929daee) when doing pc run, so I did the following:

And when doing pc run I got an error message:

───────────────────────────────────────── Starting Pynecone App ─────────────────────────────────────────
───────────────────────────────────── Installing frontend packages ──────────────────────────────────────
bun install v0.5.7 (5929daee)
error: PathAlreadyExists installing react
error: PathAlreadyExists installing @types/lodash.mergewith
error: PathAlreadyExists installing micromark-extension-gfm-footnote
error: PathAlreadyExists installing @motionone/easing
────────────────────────────────────────────── App Running ──────────────────────────────────────────────
$ next dev
/home/posho/Repos/Gator/.web/node_modules/next/dist/server/utils.js:34
const shouldUseReactRoot = parseInt(_react.default.version) >= 18;
                                                   ^

TypeError: Cannot read property 'version' of undefined
    at Object.<anonymous> (/home/posho/Repos/Gator/.web/node_modules/next/dist/server/utils.js:34:52)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/posho/Repos/Gator/.web/node_modules/next/dist/bin/next:130:33)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
error: script "dev" exited with code 1 (SIGHUP)

If it is useful for any reason, these are the only things I did before I started getting these errors:

OS Ubuntu 22.04.2 LTS
Python 3.10.6
Pynecone 0.1.18
bun 0.5.7
miunun commented 1 year ago

It doesn't work when typing "pc run" in CentOS 7, with error message. I'm not sure I can update glibc to 2.18 ─────────────────────────────────────────────────────────────── Starting Pynecone App ──────────────────────────────────────────────────────────────── ──────────────────────────────────────────────────────────── Installing frontend packages ──────────────────────────────────────────────────────────── /root/.bun/bin/bun: /lib64/libc.so.6: versionGLIBC_2.18' not found (required by /root/.bun/bin/bun) ──────────────────────────────────────────────────────────────────── App Running ───────────────────────────────────────────────────────────────────── /root/.bun/bin/bun: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /root/.bun/bin/bun)

picklelo commented 1 year ago

This should be resolved since hard-coding the bun version.