-
Notifications
You must be signed in to change notification settings - Fork 0
Setup minify error messages #1
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
base: error-code-extraction
Are you sure you want to change the base?
Setup minify error messages #1
Conversation
Janpot
commented
Sep 5, 2025
- I have followed (at least) the PR section of the contributing guide.
…isplay.tsx Co-authored-by: Michał Dudak <[email protected]> Signed-off-by: Jan Potoms <[email protected]>
Co-authored-by: atomiks <[email protected]> Signed-off-by: Jan Potoms <[email protected]>
…ntent.mdx Co-authored-by: atomiks <[email protected]> Signed-off-by: Jan Potoms <[email protected]>
Signed-off-by: Jan Potoms <[email protected]>
| import * as React from 'react'; | ||
| import { notFound } from 'next/navigation'; | ||
| import PageContent from './PageContent.mdx'; | ||
| import codes from '../../../../../error-codes.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import codes from 'docs/src/error-codes.json';
| * ... | ||
| * @param {number} code | ||
| */ | ||
| export default function formatErrorMessage(code: number, ...args: string[]): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be part of utils package and used within utils package as well as the react package since the extraction runs on both the packages.
d936046 to
2dbc69c
Compare
3e1029c to
4a7124d
Compare
187001a to
43d8fdd
Compare
Co-authored-by: Olivier Tassinari <[email protected]> Signed-off-by: Jan Potoms <[email protected]>
Co-authored-by: Olivier Tassinari <[email protected]> Signed-off-by: Jan Potoms <[email protected]>
0a4803a to
4e1c986
Compare