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
hi
i use jspdf and html2canvas-pro to generate pdf of current page, everythin in development is ok, but when i try build the extension this error occurs
how to fix this build error?
Reproduction
when i import and use jspdf in my extension this error occurs
import { jsPDF } from 'jspdf';
const pdf = new jsPDF('p', 'mm', 'a4');
Logs
│ [crx:content-script-resources] RangeError: Maximum call stack size exceeded
│ at SetIterator.next (<anonymous>)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3289:24)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ at getResources (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/vite-plugi
│ n/dist/index.mjs:3292:19)
│ ✓ built in 21.06s
│ error during build:
│ Error: [crx:manifest-post] Error in crx:content-script-resources.renderCrxManifest
│ at Object.generateBundle (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/@[email protected][email protected]/node_modules/@crxjs/v
│ ite-plugin/dist/index.mjs
│ :2933:19)
│ at async Bundle.generate (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry
│ .js:17059:9)
│ at async file:///C:/Users/ACER/Desktop/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19605:27
│ at async catchUnfinishedHookActions (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared
│ /node-entry.js:19036:16)
│ at async build (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/d
│ ep-94_H5fT6.js:66899:22)
│ at async CAC.<anonymous> (file:///C:/Users/ACER/Desktop/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/nod
│ e/cli.js:842:9)
│ ELIFECYCLE Command failed with exit code 1.
Build tool
Rollup
Where do you see the problem?
Describe the bug
hi
i use jspdf and html2canvas-pro to generate pdf of current page, everythin in development is ok, but when i try build the extension this error occurs
how to fix this build error?
Reproduction
when i import and use jspdf in my extension this error occurs
import { jsPDF } from 'jspdf';
const pdf = new jsPDF('p', 'mm', 'a4');
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: