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

Antd Design Css module not Found . #103

Open
PARASnagpal99 opened this issue Feb 13, 2023 · 5 comments
Open

Antd Design Css module not Found . #103

PARASnagpal99 opened this issue Feb 13, 2023 · 5 comments

Comments

@PARASnagpal99
Copy link

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
Copy link

ngong20 commented Mar 4, 2023

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
Copy link

pranavkangale5 commented Apr 19, 2023

use "antd/dist/reset.css";

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

@Aryan9901
Copy link

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

@pranavkangale5
Copy link

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

@THARUN2939
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants