Unable to load antd less styles

I have NextJs project with following structure -pages -_app.tsx -app -styles -antdstyles.less inside _app.tsx i … Read more Unable to load antd less styles

I have NextJs project with following structure

-pages
    -_app.tsx
-app
    -styles
        -antdstyles.less

inside _app.tsx i am trying to load import '@styles/andstyles.less which simply imports antd styles ass this @import '~antd/dist/antd.less';
However i get error saying

/app/styles/antdstyles.less

@import ‘~antd/dist/antd.less’;
^
‘~antd/dist/antd.less’ wasn’t found. Tried – /home/computer/job/proj/app/styles/~antd/dist/antd.less,/home/computer/job/proj/css/~antd/dist/antd.less,/home/computer/job/proj/~antd/dist/antd.less,~antd/dist/antd.less

Source: CSS – Stack Overflow


Categories: NewsTags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *