kamilmielnik / scrabble-solver

Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Super Scrabble, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles. Available in English, French, German, Persian, Polish, Romanian, Spanish, and Turkish.
https://scrabble-solver.org
Other
97 stars 21 forks source link

I cannot build @scrabble-solver #136

Closed Glairly closed 2 years ago

Glairly commented 2 years ago

Hi kamilmielnik! I'm a student from KMITL majoring in Computer Engineering. As I want to use your repository for educational purposes for my mini-project, I just cloned your repo and tried to build and run them. but I got this errors image

Could you please help me solve this? Thank you in advance.

This my node version image

Glairly commented 2 years ago

it seems to happen only on my laptop. my friend gets it working well. I'll close the issue but if you have any solution feel free to describe it. anyway thank you.

kamilmielnik commented 2 years ago

@Glairly

  1. I see you're using yarn. Does it work for you with npm?
  2. Judging from error messages you need to run npm install (or yarn install) first (before yarn build).

โชคดีครับ

Glairly commented 2 years ago
  1. I also got this error while using npm too.
  2. I already run it. I even re-clone and do everything from the start here is the step. By running npm install && npm run install:dev at the root. It seem lerna bootstrap is working fine but when it's time to build I alway got this error .
kamilmielnik commented 2 years ago

but when it's time to build I alway got this error .

From the fist screenshot I can see that you're running yarn build in /packages/scrabble-solver - this won't work due to lerna. yarn build (or npm run build) needs to be executed in the root directory of the project (i.e. C:\Users\USER\Desktop\grade16\AI\scrabble-solver) - the same place where you run npm install && npm run install:dev.

Does this help?


If you want to build a single package, you can run e. g. lerna run build --scope=@scrabble-solver/constants from the root directory of the project.

Glairly commented 2 years ago

I've tried running npm run start in the root which will cause lerna to build all the packages and serve the app right? And I still got this error. I've done some research on this error caused by nextjs v10.0.5 and they recommend me to upgrade it.it's worked But it broke all the code.

kamilmielnik commented 2 years ago

@Glairly I've upgraded all dependencies in the project and dropped support for old node.js. Now only node 16 and above is supported.

Can you please try again with a fresh clone of the project?

Glairly commented 2 years ago

it's worked!!! 🚀🚀🚀 Thank you for your hard work sir.