You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error TS2307: Cannot find module 'portal/PortalApp' or its corresponding type declarations in the WebPack, React, TypeScript, Micro frontend project.
In the localhost server I am getting error but the **Host **and **Remote **applications are working fine, but due to the mentioned error, "npm run build" is failed in the **Host **application.
I have tried Eslint disable next line and many of Eslint comments, but due to this error, "npm run build" is failing.
Through this line I am getting remote application and getting error for this line
const SupportPortal = React.lazy(() => import("portal/PortalApp")); // GETTING ERROR FOR THIS LINE
Sharing the component where I am getting this error
import React from 'react';
import LayoutDefault from '../../views/layoutDefault';
const SupportPortal = React.lazy(() => import("portal/PortalApp")); // GETTING ERROR FOR THIS LINE
const Index = () => {
console.log('First');
return (
<LayoutDefault>
<SupportPortal />
</LayoutDefault>
)
}
export default React.memo(Index);
I am getting an error TS2307: Cannot find module 'portal/PortalApp' or its corresponding type declarations in the WebPack, React, TypeScript, Micro frontend project.
In the localhost server I am getting error but the **Host **and **Remote **applications are working fine, but due to the mentioned error, "npm run build" is failed in the **Host **application.
I have tried Eslint disable next line and many of Eslint comments, but due to this error, "npm run build" is failing.
Through this line I am getting remote application and getting error for this line
const SupportPortal = React.lazy(() => import("portal/PortalApp")); // GETTING ERROR FOR THIS LINE
Sharing the component where I am getting this error
webpack.config.js
.eslintrc.js
tsconfig.json
The text was updated successfully, but these errors were encountered: