kamilmielnik / scrabble-solver

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

Node 20 support #308

Closed kamilmielnik closed 5 months ago

kamilmielnik commented 1 year ago

Project does not work with node 20. Probably next.js needs to be updated as well.

    ✖  @scrabble-solver/scrabble-solver:build
       > @scrabble-solver/scrabble-solver@2.12.3 build
       > env-cmd next build

       info  - Loaded env from /home/kamil/projects/scrabble-solver/packages/scrabble-solver/.env
       info  - Linting and checking validity of types...
       warn  - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
       info  - Creating an optimized production build...
       info  - Compiled successfully
       info  - Collecting page data...

       > Build error occurred
       TypeError: Cannot create property '_interopRequireDefault' on number '0'
           at /home/kamil/projects/scrabble-solver/packages/scrabble-solver/node_modules/next/dist/compiled/@vercel/nft/index.js:1:21141
           at Array.forEach (<anonymous>)
           at computePureStaticValue (/home/kamil/projects/scrabble-solver/packages/scrabble-solver/node_modules/next/dist/compiled/@vercel/nft/index.js:1:21124)
           at Object.enter (/home/kamil/projects/scrabble-solver/packages/scrabble-solver/node_modules/next/dist/compiled/@vercel/nft/index.js:1:24926)
           at AsyncWalker.visit (/home/kamil/projects/scrabble-solver/packages/scrabble-solver/node_modules/next/dist/compiled/@vercel/nft/index.js:6:78350)
           at AsyncWalker.visit (/home/kamil/projects/scrabble-solver/packages/scrabble-solver/node_modules/next/dist/compiled/@vercel/nft/index.js:6:78883)