-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eslint error for 1.24 - unable to install/build #856
Comments
I need to fix up the package dependencies, but for now you can do this. In package.json replace eslint |
However (because I delete/re-clone) the umami folder,
I had to fix |
You can also try using |
Unfortunately yarn produced the same error :
|
You need to do a clean install with |
Same issue.
I tried with umami 1.13.0 and had the same result. |
What do you mean by this? You shouldn't have to do anything but run install. It will install everything specified in the package.json. |
Sorry, i think I'm lost between npm and yarn .. I tried on another server, and everything works fine. I must have a cache problem somewhere |
the same here.
got the error: full log: server:~/username$ yarn run build
yarn run v1.22.15
$ npm-run-all build-tracker build-lang build-geo build-db build-app
$ rollup -c rollup.tracker.config.js
tracker/index.js → public/umami.js...
created public/umami.js in 605ms
$ npm-run-all format-lang compile-lang
$ node scripts/format-lang.js
/home/username/build/ar-SA.json ✗
/home/username/build/ca-ES.json ✗
/home/username/build/cs-CZ.json ✗
/home/username/build/da-DK.json ✗
/home/username/build/de-DE.json ✗
/home/username/build/el-GR.json ✗
/home/username/build/en-GB.json ✗
/home/username/build/en-US.json ✗
/home/username/build/es-MX.json ✗
/home/username/build/fa-IR.json ✗
/home/username/build/fi-FI.json ✗
/home/username/build/fo-FO.json ✗
/home/username/build/fr-FR.json ✗
/home/username/build/he-IL.json ✗
/home/username/build/hi-IN.json ✗
/home/username/build/hu-HU.json ✗
/home/username/build/id-ID.json ✗
/home/username/build/it-IT.json ✗
/home/username/build/ja-JP.json ✗
/home/username/build/ko-KR.json ✗
/home/username/build/mn-MN.json ✗
/home/username/build/ms-MY.json ✗
/home/username/build/nb-NO.json ✗
/home/username/build/nl-NL.json ✗
/home/username/build/pl-PL.json ✗
/home/username/build/pt-BR.json ✗
/home/username/build/pt-PT.json ✗
/home/username/build/ro-RO.json ✗
/home/username/build/ru-RU.json ✗
/home/username/build/sk-SK.json ✗
/home/username/build/sl-SI.json ✗
/home/username/build/sv-SE.json ✗
/home/username/build/ta-IN.json ✗
/home/username/build/tr-TR.json ✗
/home/username/build/uk-UA.json ✗
/home/username/build/vi-VN.json ✗
/home/username/build/zh-CN.json ✗
/home/username/build/zh-TW.json ✗
/home/username/lang/ar-SA.json -> /home/username/build/ar-SA.json
/home/username/lang/ca-ES.json -> /home/username/build/ca-ES.json
/home/username/lang/cs-CZ.json -> /home/username/build/cs-CZ.json
/home/username/lang/da-DK.json -> /home/username/build/da-DK.json
/home/username/lang/de-DE.json -> /home/username/build/de-DE.json
/home/username/lang/el-GR.json -> /home/username/build/el-GR.json
/home/username/lang/en-GB.json -> /home/username/build/en-GB.json
/home/username/lang/en-US.json -> /home/username/build/en-US.json
/home/username/lang/es-MX.json -> /home/username/build/es-MX.json
/home/username/lang/fa-IR.json -> /home/username/build/fa-IR.json
/home/username/lang/fi-FI.json -> /home/username/build/fi-FI.json
/home/username/lang/fo-FO.json -> /home/username/build/fo-FO.json
/home/username/lang/fr-FR.json -> /home/username/build/fr-FR.json
/home/username/lang/he-IL.json -> /home/username/build/he-IL.json
/home/username/lang/hi-IN.json -> /home/username/build/hi-IN.json
/home/username/lang/hu-HU.json -> /home/username/build/hu-HU.json
/home/username/lang/id-ID.json -> /home/username/build/id-ID.json
/home/username/lang/it-IT.json -> /home/username/build/it-IT.json
/home/username/lang/ja-JP.json -> /home/username/build/ja-JP.json
/home/username/lang/ko-KR.json -> /home/username/build/ko-KR.json
/home/username/lang/mn-MN.json -> /home/username/build/mn-MN.json
/home/username/lang/ms-MY.json -> /home/username/build/ms-MY.json
/home/username/lang/nb-NO.json -> /home/username/build/nb-NO.json
/home/username/lang/nl-NL.json -> /home/username/build/nl-NL.json
/home/username/lang/pl-PL.json -> /home/username/build/pl-PL.json
/home/username/lang/pt-BR.json -> /home/username/build/pt-BR.json
/home/username/lang/pt-PT.json -> /home/username/build/pt-PT.json
/home/username/lang/ro-RO.json -> /home/username/build/ro-RO.json
/home/username/lang/ru-RU.json -> /home/username/build/ru-RU.json
/home/username/lang/sk-SK.json -> /home/username/build/sk-SK.json
/home/username/lang/sl-SI.json -> /home/username/build/sl-SI.json
/home/username/lang/sv-SE.json -> /home/username/build/sv-SE.json
/home/username/lang/ta-IN.json -> /home/username/build/ta-IN.json
/home/username/lang/tr-TR.json -> /home/username/build/tr-TR.json
/home/username/lang/uk-UA.json -> /home/username/build/uk-UA.json
/home/username/lang/vi-VN.json -> /home/username/build/vi-VN.json
/home/username/lang/zh-CN.json -> /home/username/build/zh-CN.json
/home/username/lang/zh-TW.json -> /home/username/build/zh-TW.json
$ formatjs compile-folder --ast build public/lang
$ node scripts/build-geo.js
Saved geo database: /home/username/public/geo/GeoLite2-Country.mmdb
$ npm-run-all copy-db-schema build-db-client
$ node scripts/copy-db-schema.js
Database type detected: mysql
Copied /home/username/prisma/schema.mysql.prisma to /home/username/prisma/schema.prisma
$ dotenv prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (2.29.1) to ./node_modules/@prisma/client in 579ms
You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
$ next build
info - Loaded env from /home/username/.env
info - 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
Failed to compile.
./components/layout/Header.js
21:11 Error: 'locale' is assigned a value but never used. no-unused-vars
./components/metrics/FilterTags.js
18:11 Error: Missing "key" prop for element in iterator react/jsx-key
./lib/lang.js
42:1 Error: Parsing error: Unexpected token <
./lib/queries.js
430:24 Error: 'ref' is assigned a value but never used. no-unused-vars
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build-app" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
I tested this locally and it worked on v1.24 👍🏽 , for my production app, I rolled back to v1.23, I'll wait for the next fix did I add the thank you. |
I had the same issue as @atmonshi (#856 (comment)). ( @atmonshi could I close this issue ?) |
yes it’s ok |
This should all be working now in v1.24.1. |
guys, this prob. needs only just update node js version to the lastest ...nothing else ... |
Hi
I tried to update to 1.24.0 and got a lot of errors from eslint ..
To find a solution, I tried to remove the umami folder, cleered the npm cache and start from the begining, but I still got a blocking error :
I'm not very familiar with npm.
Nodejs : v14.18.1
Debian 11.1
The text was updated successfully, but these errors were encountered: