From 8440f507dbcb55a6cc61e175b9d38ccfe6d637ee Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 15 Nov 2024 15:40:31 +0100 Subject: [PATCH] pnp error: try requuire.resolve ? --- packages/docusaurus-bundler/src/loaders/styleLoader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-bundler/src/loaders/styleLoader.ts b/packages/docusaurus-bundler/src/loaders/styleLoader.ts index 320b529c6be7..54c18e91fe51 100644 --- a/packages/docusaurus-bundler/src/loaders/styleLoader.ts +++ b/packages/docusaurus-bundler/src/loaders/styleLoader.ts @@ -70,7 +70,7 @@ export async function createStyleLoadersFactory({ ident: 'postcss', plugins: [ [ - 'postcss-preset-env', + require.resolve('postcss-preset-env'), { // Keeping this empty options object on purpose // It could be more convenient for configurePostCss() usage