Setting "type": "module" in package.json in clean docusaurus project causes build to fail. #11326
-
I have a monorepo with multiple projects, one of which is a docusaurus documentation set. The monorepo uses pnpm workspaces so there is a At some point I flipped the root I tried to recreate the problem by creating a new, clean docusaurus project and it also fails when using I reproduced it on Windows 11 with pnpm
No changes to configuration and no changes to any files (except This is the raw output:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please see #6520. Almost no part of your Docusaurus site (client-side or server-side) is designed to work with pure ESM; in particular, our webpack infra expects your client code to be in the "ambiguous" module mode. |
Beta Was this translation helpful? Give feedback.
Please see #6520. Almost no part of your Docusaurus site (client-side or server-side) is designed to work with pure ESM; in particular, our webpack infra expects your client code to be in the "ambiguous" module mode.