Closed MichalBryxi closed 1 year ago
Good Morning! That's an odd one. Have you tried it with npm? :)
I can get your repo to build and start with npm and yarn, though I've removed yarn from the origin-repo for now, since I had to deal with some weird "the app builds but does not start up" issues yesterday/today morning.
I tried to reproduce this since I still have project on my local machine.
Both npm install
and yarn install
work fine for me.
I saw the same error as Michal when I didyarn start
but only once. I couldn't reproduce it consistently.
When I was translating the project I only used npm run dev
and didn't encounter any issues.
macOS 13.3.1 on Intel MBP, node 18.14.2, yarn 1.22.19.
I'm doing it the same way, mostly using npm run dev
, since I'm not building locally..
Curious. When using npm
it works for me, but I have to run npm run build
before I can successfully run npm run start
. Nuasance and maybe a note in the documentation might be good.
But when trying the same with yarn
of versions v4.x
, v3.x
and v2.x
I will get the error from above. Or similar.
But(!) when I pin my yarn
version to v1.x
it works. To be honest I have no clue what are the problems with yarn@berry+
so not going to patch it against higher version, but pinning it down seems like a good compromise.
Bug description
Can't make the app
yarn start
locallySteps to reproduce
Steps to reproduce the behavior:
git clone git@github.com:MichalBryxi/vegancheck.me.git
yarn install
with success:yarn start
with following errors:yarn build
with following errors:./src/components/Scanner/scanner.tsx:1:34 Type error: Cannot find module 'react' or its corresponding type declarations.
System
Additional info
Hope this helps. Happy to provide more information if needed.