-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Build failed: Unknown keyword formatMinimum #6073
Comments
Hi, two of the maintainers are using Mac M1 (including me). Unfortunately I'm unable to reproduce the issue:
(I'm using Yarn because I'm having troubles connecting to the NPM registry but the package manager shouldn't be the issue here) Update. I'm on MacOS Big Sur, but there's little reason why that's the problem |
Oh, wired. Let's give it a try. @zhang2014, can you use node v17.1 and yarn to run |
@zhang2014 After inspecting the error stack you posted in the original issue, I think the issue could be a version mismatch between joshcena@Sidas-MacAir:databend$ node -e "require('/Users/joshcena/Desktop/work/Tech/projects/databend/website/databend/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js').get('formatMinimum')"
/Users/joshcena/Desktop/work/Tech/projects/databend/website/databend/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js:25
throw new Error("Unknown keyword " + keyword);
^
Error: Unknown keyword formatMinimum
at Function.get (/Users/joshcena/Desktop/work/Tech/projects/databend/website/databend/node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords/dist/index.js:25:15) The error is coming from the Webpack loader I was wrong when I said Yarn wasn't the issue; Yarn was exactly the reason why I couldn't reproduce. This incident has demonstrated why Yarn is a better package manager :D Please test again with Yarn and check if that works. |
@Josh-Cena Thank you so much for your quick and accurate feedback, it's awesome! |
For anyone from Google, I just updated Npm to the latest version and it fixed the issue. |
Just moved those "ajv" from dependencies to devDependencies
It works like a charm with npm itself.
|
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
It's more like a runtime-related issue, so I didn't create a repro.
We set up a website in https://github.com/datafuselabs/databend/tree/main/website/databend, and developers with Mac M1 failed to build this site.
Reported in databendlabs/databend#3283
Steps to reproduce
git clone git@github.com:datafuselabs/databend.git
cd databend/website/databend
npm run build
Expected behavior
The site built successful.
Actual behavior
Your environment
Reproducible demo
https://github.com/datafuselabs/databend/tree/main/website/databend
Self-service
The text was updated successfully, but these errors were encountered: