Tuesday, 22 September 2020

How to configure Tailwind css with angular, ng-zorro-antd, and less?

I'm trying to integrate Taiwind CSS in an Angular project using ng-zorro-antd and less.

I'm having an error:

ERROR in ./src/styles.less (./node_modules/css-loader/dist/cjs.js??ref--15-1!./node_modules/postcss-loader/src??embedded!./node_modules/less-loader/dist/cjs.js??ref--15-3!./node_modules/postcss-loader/src??postcss!./src/styles.less)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Failed to find './themes/index'
  in [
    /Users/iguissouma/idea/test-ant-less-tailwind/node_modules/ng-zorro-antd/style
  ]
    at resolveModule.catch.catch (/Users/iguissouma/idea/test-ant-less-tailwind/node_modules/postcss-import/lib/resolve-id.js:35:13)
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

A sample project-repo built with angular-cli and added ng-zorro-antd @nartc/tailwind-schematics schematics.

Any idea how to solve this issue?



from How to configure Tailwind css with angular, ng-zorro-antd, and less?

No comments:

Post a Comment