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
Hi there. I have to say extracted-loader is much easier to use than 'next-css' and 'next-sass', I use it for meanwhile import css and sass. thanks.
A small issue maybe:
When I use ant-design with it, it works fine. I have two pages, one is the main page and there is a carousel on it:
import{Carousel}from'antd';// for jsimport'../scss/test.scss';import'../scss/test1.css';
and the other page , I imported Button
import{Button}from'antd'
it works fine when I startup npm run dev and view main, but when I goto other page and then come back, the carousel styles lost, including test.scss, test1.css, but antd common styles are there. two images:
when just after npm run dev :
when goto other page and come back:
And a strange thing is, when this issue occurs, whatever I try to modify the source code, the styles can not be coming back again, the only thing I can do is restart npm run dev
Hi there. I have to say
extracted-loader
is much easier to use than 'next-css' and 'next-sass', I use it for meanwhile import css and sass. thanks.A small issue maybe:
When I use ant-design with it, it works fine. I have two pages, one is the
main
page and there is a carousel on it:and the
other
page , I importedButton
it works fine when I startup
npm run dev
and viewmain
, but when I gotoother
page and then come back, the carousel styles lost, includingtest.scss
,test1.css
, but antd common styles are there. two images:when just after
npm run dev
:when goto other page and come back:
And a strange thing is, when this issue occurs, whatever I try to modify the source code, the styles can not be coming back again, the only thing I can do is restart
npm run dev
Could someone help?
if need more details, I provided a repository: https://github.com/wslx520/nextjs-antd , thank you.
The text was updated successfully, but these errors were encountered: