Skip to content
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

npm run build throws warnings #350

Closed
lkiesow opened this issue May 6, 2024 · 0 comments · Fixed by #430
Closed

npm run build throws warnings #350

lkiesow opened this issue May 6, 2024 · 0 comments · Fixed by #430
Assignees
Labels
type:bug Something isn't working

Comments

@lkiesow
Copy link
Member

lkiesow commented May 6, 2024

Running npm run build you get a lot of warnings. There should be none:

%> npm run build

> admin-ui-picard@0.1.0 build
> react-app-rewired build

Creating an optimized production build...
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.

babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
  

Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.

Failed to compile.

Warning
(1:49321) autoprefixer: Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.

Warning
(1:91044) autoprefixer: start value has mixed support, consider using flex-start instead

[eslint] 
src/components/configuration/partials/wizard/NewThemeWizard.tsx
  Line 13:10:  'Details' is defined but never used  @typescript-eslint/no-unused-vars

src/components/events/partials/ModalTabsAndPages/EventDetailsAssetAttachmentDetails.tsx
  Line 147:13:  Anchors must have content and the content must be accessible by a screen reader  jsx-a11y/anchor-has-content

src/components/events/partials/ModalTabsAndPages/EventDetailsAssetCatalogDetails.tsx
  Line 145:13:  Anchors must have content and the content must be accessible by a screen reader  jsx-a11y/anchor-has-content

src/components/events/partials/ModalTabsAndPages/EventDetailsAssetPublicationDetails.tsx
  Line 147:13:  Anchors must have content and the content must be accessible by a screen reader  jsx-a11y/anchor-has-content

src/components/events/partials/ModalTabsAndPages/EventDetailsPublicationTab.tsx
  Line 72:16:  Anchors must have content and the content must be accessible by a screen reader  jsx-a11y/anchor-has-content

src/components/events/partials/modals/StartTaskModal.tsx
  Line 96:10:  React Hook useEffect has a missing dependency: 'formik'. Either include it or remove the dependency array. Outer scope values like 'page' aren't valid dependencies because mutating them doesn't re-render the component  react-hooks/exhaustive-deps

src/components/shared/TableFilterProfiles.tsx
  Line 9:2:   'editFilterProfile' is defined but never used          @typescript-eslint/no-unused-vars
  Line 46:9:  'currentlyEditing' is assigned a value but never used  @typescript-eslint/no-unused-vars

src/components/shared/TableFilters.tsx
  Line 1:17:    'createRef' is defined but never used                                              @typescript-eslint/no-unused-vars
  Line 27:10:   'parseISO' is defined but never used                                               @typescript-eslint/no-unused-vars
  Line 312:37:  Array.prototype.map() expects a value to be returned at the end of arrow function  array-callback-return

src/components/shared/TimeSeriesStatistics.tsx
  Line 54:8:   'datePickerStyle' is assigned a value but never used                                                                                                                                                                                                                                                                                                                      @typescript-eslint/no-unused-vars
  Line 215:7:  Anchors must have content and the content must be accessible by a screen reader                                                                                                                                                                                                                                                                                           jsx-a11y/anchor-has-content
  Line 268:8:  Anchors must have content and the content must be accessible by a screen reader                                                                                                                                                                                                                                                                                           jsx-a11y/anchor-has-content
  Line 268:8:  The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid
  Line 285:8:  Anchors must have content and the content must be accessible by a screen reader                                                                                                                                                                                                                                                                                           jsx-a11y/anchor-has-content
  Line 285:8:  The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md  jsx-a11y/anchor-is-valid

src/components/shared/wizard/SelectContainer.tsx
  Line 19:16:  'meta' is assigned a value but never used  @typescript-eslint/no-unused-vars

src/components/users/partials/wizard/NewUserWizard.tsx
  Line 75:9:  React Hook useEffect has a missing dependency: 'formik'. Either include it or remove the dependency array. Outer scope values like 'tab' aren't valid dependencies because mutating them doesn't re-render the component  react-hooks/exhaustive-deps

src/utils/bulkActionUtils.ts
  Line 4:10:  'useAppDispatch' is defined but never used  @typescript-eslint/no-unused-vars
@lkiesow lkiesow added the type:bug Something isn't working label May 6, 2024
@JulianKniephoff JulianKniephoff self-assigned this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants