In my NextJs project, I have the following file structure:
-pages
-_app.tsx
-app
-styles
-antdstyles.less
Within _app.tsx
, I am attempting to import @styles/andstyles.less
, which simply imports antd styles like this: @import '~antd/dist/antd.less'
;
However, I encounter an error that says:
/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