adrianhajdin / project_cryptoverse

Cryptocurrency App powered by RapidAPI
https://jsmastery.pro
1.32k stars 401 forks source link

Antd Design Css module not Found . #103

Open PARASnagpal99 opened 1 year ago

PARASnagpal99 commented 1 year ago

Trying to import antd design css in index.js using import "antd/dist/antd.css" but its showing an error that . Module not found: Error: Can't resolve 'antd/dist/antd.css' in '/Users/parasnagpal0707/Documents/Projects/cryptoverse/src' ERROR in ./src/index.js 8:0-28 Module not found: Error: Can't resolve 'antd/dist/antd.css' in '/Users/parasnagpal0707/Documents/Projects/cryptoverse/src' Please Help me to resolve this issue .

ngong20 commented 1 year ago

import "antd/dist/antd.css" it has been abondened so it not working anymore, but you can use ' import 'antd/dist/reset.css'; but you can import into App.js

pranavkangale5 commented 1 year ago

use "antd/dist/reset.css";

first unistall antd and again install antd Check in node modules - antd/dist/reset.css file will found

Aryan9901 commented 1 year ago

i have used antd/dist/reset.css file but it will not works why please help???

pranavkangale5 commented 1 year ago

Antd has shifted its version . check out its new documentation https://ant.design/docs/react/migration-v5/

THARUN2939 commented 9 months ago

ERROR in ./src/App.js 28:39-45 export 'Switch' (imported as 'Switch') was not found in 'react-router-dom' (possible exports: AbortedDeferredError, Await, BrowserRouter, Form, HashRouter, Link, MemoryRouter, NavLink, Navigate, NavigationType, Outlet, Route, Router, RouterProvider, Routes, ScrollRestoration, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_FetchersContext, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, UNSAFE_ViewTransitionContext, UNSAFE_useRouteId, UNSAFE_useScrollRestoration, createBrowserRouter, createHashRouter, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, createSearchParams, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, renderMatches, resolvePath, unstable_HistoryRouter, unstable_usePrompt, unstable_useViewTransitionState, useActionData, useAsyncError, useAsyncValue, useBeforeUnload, useBlocker, useFetcher, useFetchers, useFormAction, useHref, useInRouterContext, useLinkClickHandler, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, useSearchParams, useSubmit) ERROR in ./src/index.js 10:0-28 Module not found: Error: Can't resolve 'antd/dist/antd.css' in 'C:\Users\tharu\OneDrive\Desktop\my-crypto-app\my-crypto-app\src'