-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Updating to 3.2 breaks tailwind integration in production #10005
Comments
more example |
When using v3.2.0, plugins.configurePostCss(options) api not work anymore, maybe is the reason. |
I had the same problem when I upgraded to version 3.2 that will lost tailwind css style after npm build, I look forward to a solution to this problem |
See my comment below |
Thanks for the example, but it’s not very clear why everything works in the https://openfeature.dev/ version. https://github.com/open-feature/openfeature.dev/blob/main/docusaurus.config.ts#L279 And after updating the dependencies there are no open-feature/openfeature.dev#489 Although, as mentioned above, everything works locally, but in production, alas. https://deploy-preview-489--openfeature.netlify.app/ |
and this is for all projects where I updated dependencies yesterday and everyone has the same problem, locally everything is fine, production is not |
Oops my bad, I forgot after trying to reproduce with the base guide the problem is in production Indeed I have the same error in the sandbox with version 3.2.0 and no issue in version 3.1.0 i'll try to take a look |
Thanks for reporting, it's probably a mistake I did when refactoring things to improve performance. I'll take a look soon and publish a fix ASAP. |
@slorber I've seen people report that the bug doesn't trigger on
Edit2: Nope, nvm. It is triggering in v3.1.1 indeed Edit3: It was triggering in |
Update: We were on |
Can you please test canary It is the same as v3.2 (no breaking change, but this problem should be fixed) |
I checked it on all the projects that I support, everything works, only the one had problems with the plugin https://www.npmjs.com/package/docusaurus-plugin-image-zoom but I think this is not a problem, I deleted it and everything worked, most likely it does not support the canary version or there is another problem. Thanks for the work. |
Canary seems to work for me too - but I also had to remove a dependency, cause it was expecting a docusaurus version bigger then 3.0 |
Great 👍 I'll release soon
Maybe worth opening an issue on that plugin repo. I can't help if I don't know what the problem was.
Which dependency? Which version are you upgrading from? 2.x? |
Docusaurus 3.2 to the canary Dependency is Probably caused by https://github.com/gabrielcsapo/docusaurus-plugin-search-local/blob/main/package.json#L97 |
Cause it breaks Tailwind CSS support facebook/docusaurus#10005
Ah, I see yes, it might prevent you from using a canary due to the |
Fix released in v3.2.1 https://github.com/facebook/docusaurus/releases/tag/v3.2.1 |
<!-- Pull requests are squash merged using: - their title as the commit message - their description as the commit body Having a good title and description is important for the users to get readable changelog and understand when they need to update his code and how. --> <!-- Explain WHAT the change is --> #### Motivation and context Fix the CSS issue introduced by docusaurus 3.2.0 (facebook/docusaurus#10005). 3.2.1 should fix it but the affected version maybe loaded by dependencies, so we will have to wait a bit more. <!-- Explain WHY the was made or link an issue number --> <!-- Explain HOW users should update their code when required --> ### Checklist - [ ] The change come with new or modified tests - [x] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change --------- Co-authored-by: Natoandro <anatoandro@hotmail.com>
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Upgrading to 3.2 broke the tailwind styling, which I've integrated according to https://medium.com/@bargadyahmed/docusaurus-a-guide-to-seamless-integration-with-tailwind-css-dd202211caac
Here I've added the
banner-preview
with the custom tailwind integration flathub-infra/documentation@e0dc841
(#272)It still works fine in dev, but breaks in prod or locally - if I do
yarn build
and thenyarn serve
. Unfortunatly the production errors are not helpful.Basically https://docs.flathub.org/banner-preview/ should be styled. Like this:
Reproducible demo
https://github.com/flathub-infra/documentation
Steps to reproduce
yarn
yarn build
yarn serve
Expected behavior
The page should be styled like in the above image
Actual behavior
The page isn't styled, presumably because tailwind isn't working, after upgrading to 3.2
Your environment
Self-service
The text was updated successfully, but these errors were encountered: