TypeError: path.isAbsolute is not a function
at toImportId (http://localhost:6006/node_modules/.cache/sb-vite/deps/@prettier_sync.js?v=9b0cb352:123:45)
at createSynchronizedPrettier (http://localhost:6006/node_modules/.cache/sb-vite/deps/@prettier_sync.js?v=9b0cb352:135:24)
at node_modules/.pnpm/@prettier+sync@0.3.0_prettier@3.1.0/node_modules/@prettier/sync/index.cjs (http://localhost:6006/node_modules/.cache/sb-vite/deps/@prettier_sync.js?v=9b0cb352:169:22)
at __require2 (http://localhost:6006/node_modules/.cache/sb-vite/deps/chunk-WGAPYIUP.js?v=9b0cb352:19:50)
at http://localhost:6006/node_modules/.cache/sb-vite/deps/@prettier_sync.js?v=9b0cb352:173:16
What am I doing wrong, or how am I supposed to use it correctly?
I'm trying to use a synchronous version of prettier to format the source code snippets in Storybook:
But I get this error:
What am I doing wrong, or how am I supposed to use it correctly?