Nikita Pande created AMBARI-26261:
-------------------------------------
Summary: Ambari Admin React Build Fix
Key: AMBARI-26261
URL: https://issues.apache.org/jira/browse/AMBARI-26261
Project: Ambari
Issue Type: Bug
Environment: NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
Reporter: Nikita Pande
Fix 'npm run build ' errors in ambari-admin reactjs code
{code:java}
src/screens/Views/types.ts:18:29 - error TS2307: Cannot find module './enums'
or its corresponding type declarations.18 import { ControlType } from "./enums";
~~~~~~~~~src/tests/StackVersions/VersionsList.test.tsx:25:29 - error TS2307:
Cannot find module '../../__mocks__/mockClusterInfo' or its corresponding type
declarations.25 import mockClusterInfo from "../../__mocks__/mockClusterInfo";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~src/tests/StackVersions/VersionsList.test.tsx:28:31
- error TS2307: Cannot find module
'../../screens/ClusterManagement/StackVersions/List' or its corresponding type
declarations.28 import StackVersionsList from
"../../screens/ClusterManagement/StackVersions/List";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 3 errors. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]