Closed geocine closed 4 years ago
@geocine any news on antd integration with next inside nx ?
Running into the same issue here, any update on this?
Upgrading to the latest version of Nx and also installing the null-loader
that you reference seems to fix this. It may be that you were just missing the null-loader
in the first place, but that was the second thing I tried after upgrading 🤷♀️
For ref, to upgrade:
yarn add @nrwl/workspace@latest
nx migrate 9.3.0 --from=@nrwl/workspace@8.6.0
yarn
nx migrate --run-migrations=migrations.json
yarn add null-loader
Update your workspace.json
so that the serve
builder is now @nrwl/next:server
, then:
nx serve nx-antd
Let me know if you still have problems after trying that.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
I am integrating
antd
withnext.js
. I have followed working example outside of the Nx workspace written in JavaScript.Setup is based on this working example from zeit https://github.com/zeit/next.js/tree/master/examples/with-ant-design-less
I have created the same example in Nx Workspace but in TypeScript
Expected Behavior
Project should successfully work inside Nx Workspace
Current Behavior
It is currently throwing an error regarding
less
See full error below
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
next.js
application and useless
as styleContext
I have created a repo to reproduce the issue
https://github.com/geocine/nx-antd-less-typescript-issue
Failure Logs