Closed mbeary-09 closed 1 year ago
Update - my react is outdated. I recreated my app, and it worked. This is what the package.json should be:
"name": "pptxtester",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"pptxgenjs": "^3.12.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.38.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"typescript": "^5.0.2",
"vite": "^4.3.9"
}
}
Issue Category
Product Versions
Desired Behavior
I'm trying to
writeFile
, and it should result in a downloaded PPTX file from Chrome in my downloads folder.Observed Behavior
I'm trying to
writeFile
, resulting in this error message:Uncaught (in promise) TypeError: Buffer.isBuffer is not a function
. I'm unsure how to resolve this. Does anyone have any ideas?Steps to Reproduce
I am creating a react typescript app.
My code
The error message: