You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to migrate a project to pnpm and vite which successfully used @react-pdf/renderer a year ago. You can see the stable version using npm and nextjs at https://cefn.com/cv
I had to upgrade to 3.0.0 owing to issues in version 2 like this one and this one
However, now an attempt to run tsc && vite build leads to the following fatal error - both lines are source code which I believe comes through dependencies from @react-pdf/[email protected]
✘ [ERROR] The symbol "Buffer" has already been declared
node_modules/.pnpm/@[email protected]/node_modules/@react-pdf/png-js/lib/png-js.browser.es.js:6952:4:
6952 │ var Buffer = safeBuffer.exports.Buffer;
╵ ~~~~~~
The symbol "Buffer" was originally declared here:
node_modules/.pnpm/@[email protected]/node_modules/@react-pdf/png-js/lib/png-js.browser.es.js:2:16:
2 │ import { Buffer } from 'buffer';
╵ ~~~~~~
/home/cefn/Documents/github/cvvite/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1566
let error = new Error(`${text}${summary}`);
^
Error: Build failed with 1 error:
The text was updated successfully, but these errors were encountered:
Attempting to migrate a project to
pnpm
andvite
which successfully used@react-pdf/renderer
a year ago. You can see the stable version usingnpm
andnextjs
at https://cefn.com/cvI had to upgrade to 3.0.0 owing to issues in version 2 like this one and this one
However, now an attempt to run
tsc && vite build
leads to the following fatal error - both lines are source code which I believe comes through dependencies from@react-pdf/[email protected]
The text was updated successfully, but these errors were encountered: