-
Notifications
You must be signed in to change notification settings - Fork 81
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
Not compatible with alpha 75 / Webpack 5 #52
Comments
Hi @slorber I've removed the configureWebpack from the index.js file, and have run the I've updgraded my Docusaurus version to Removed/Commented:
After I run
Is there anything that I need to do. Please advice. |
Can you give me a repo/branch to inspect please?
This error can be related to many problems
Le mar. 4 mai 2021 à 07:45, Chris-ganta ***@***.***> a écrit :
… Hi @slorber <https://github.com/slorber> I've removed the
configureWebpack from the index.js file, and have run the npm run build.
However, I'm still getting the same issue
Error: Conflict: Multiple chunks emit assets to the same filename server.bundle.js (chunks 179 and 462)
#12 75.29 at /app/website/node_modules/webpack/lib/Compilation.js:3864:12
#12 75.29 at /app/website/node_modules/webpack/lib/Cache.js:85:6
#12 75.29 at /app/website/node_modules/webpack/lib/Cache.js:39:11
#12 75.29 at /app/website/node_modules/webpack/lib/cache/IdleFileCachePlugin.js:66:9
#12 75.29 at /app/website/node_modules/webpack/lib/Cache.js:88:6
#12 75.29 at eval (eval at create (/app/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:30:1)
#12 75.29 at runMicrotasks (<anonymous>)
#12 75.29 at processTicksAndRejections (internal/process/task_queues.js:93:5)
#12 75.41 error building locale=en
#12 75.41 Error: Conflict: Multiple chunks emit assets to the same filename server.bundle.js (chunks 179 and 462)
#12 75.41 at /app/website/node_modules/webpack/lib/Compilation.js:3864:12
#12 75.41 at /app/website/node_modules/webpack/lib/Cache.js:85:6
#12 75.41 at /app/website/node_modules/webpack/lib/Cache.js:39:11
#12 75.41 at /app/website/node_modules/webpack/lib/cache/IdleFileCachePlugin.js:66:9
#12 75.41 at /app/website/node_modules/webpack/lib/Cache.js:88:6
#12 75.41 at eval (eval at create (/app/website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:30:1)
#12 75.41 at runMicrotasks (<anonymous>)
#12 75.41 at processTicksAndRejections (internal/process/task_queues.js:93:5)
#12 83.87 error Command failed with exit code 1.
#12 83.87 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I've updgraded my Docusaurus version to 2.0.0-alpha.75.
Is there anything that I need to do. Please advice.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PU4TLUVETKANBAVT23TL6CZHANCNFSM436QDD7A>
.
|
Thanks so much in replying back. Wish I could provide you the repo. It's an internal repo and secured. To give you a background, it worked before the upgrade, and our Doc CI has been failing after the upgrade. |
Unfortunately it's complicated to debug this remotely.
Very likely due to using a plugin doing similar webpack config changes, do
you use any non official plugin?
I'd also recommend inspecting node modules manually to be sure that you
upgraded correctly your lib and the webpack cfg is not there anymore
Le mar. 4 mai 2021 à 09:16, Chris-ganta ***@***.***> a écrit :
… Thanks so much in replying back.
Wish I could provide you the repo. It's an internal repo and secured. To
give you a background, it worked before the upgrade, and our Doc CI has
been failing after the upgrade.
Any check you recommend?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PQPZXP5GWTV2YHRGNDTL6NOTANCNFSM436QDD7A>
.
|
I'm redoing the package from the beginning: Updating the package.json:
After I run
|
@Chris-ganta I'm sorry but I can only help if you provide a repro. If your repo is private, remove the sensitive parts and publish the reduced repro publicly, or give me access to your private repo and tell me which branch fails to build. |
@slorber best option for no is a fork and replace it in package or? Did that and it works, but is not that nice. Sadly this project is not really well maintained and others search integrations (except SaaS solution) are really basic. |
A temporary workaround is to publish your own fork, or use something like patch-package to fix it locally |
new veriosn v2.1.13 published with the fix |
thanks 👍 |
Hi, Docusaurus maintainer here
I'm testing the latest alpha 75 release (Webpack 5) on a few sites, and this one is failing to upgrade due to this plugin: nextauthjs/next-auth#1826
You have webpack optimizations here:
Removing these optimizations makes the plugin work again on alpha 75, so I suggest to remove those for now to ensure everybody can upgrade.
Not sure why this does not work anymore though, nor why we have this error message.
Was also wondering why you need this optimization, as the algolia code/plugin is already in a distinct package. Maybe it's a legacy optim?
Unrelated: the call to
generateLunrClientJS
would probably be better in another lifecycle likecontentLoaded()
(but in practice it is probably not very important).The text was updated successfully, but these errors were encountered: