-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tailwind + publishable libs build error #22043
Comments
Thanks for reporting this! The issue happens because of a constraint regarding build target names (https://nx.dev/recipes/angular/setup-incremental-builds-angular#build-target-name). What's happening is that the target with an executor that supports incremental builds in your We are trying out (and plan to enable it by default) a new way of calculating the target dependencies for incremental builds that should not be constrained by this. Could you try running your command with the |
thanks for your response @leosvelperez but no luck :( |
hey @PatoDeVille! Apologies for the delay in getting back to you. One thing I missed last time is that we need to make sure the task graph has the correct dependencies so Nx can properly figure out the buildable libs dependencies. To do so, please update your {
...
"targetDefaults": {
...
"build-angular": {
"dependsOn": ["^build"]
},
},
...
} With that in place, you can build your library (or app) setting the env var I mentioned in my last comment:
The important bit is that any target using one of the Nx executors that supports incremental builds (e.g. Please let me know if you still have any issues after making the adjustments above. |
I'm closing this since a solution was provided in #22043 (comment) (I tested it in a repo with a similar setup as this issue's description). @PatoDeVille, if you still have any issues after following the instructions on that comment, please leave a message, and I'll take a look. |
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. |
Current Behavior
I am having a problem with a library in my project, which is consuming other "sister" libraries in the monorepo.
This is the "default" build step and it has no issues building or what so ever.
But if i add tailwind and the configuration suggested in the NX + angular + tailwind recipe
I get errors regarding TS6059 and TS5055 that "file/from/another/lib" is not exported in rootDir
any ideas what could it be?
im using NX 16
Expected Behavior
build normally regardless if is using another library from the project or not
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
if i am using a library with tailwind and the same configuration but said library doesnt import anything from the rest... it builds smoothly
The text was updated successfully, but these errors were encountered: