Ye didn't know what to add... Bacause in my code I am not gettin any error, im just trying to migrate the project from node 14 to 18 but when I run dev i get @swc/helpers thing.
This is my package.json, maybe can help:
{
"name": "openbootcamp-web",
"version": "2.0.0",
"private": true,
"scripts": {
"start": "next dev",
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"lint": "next lint",
"e2e": "cypress run",
"e2e:open": "cypress open",
"sync": "npx @plasmicapp/cli sync"
},
"dependencies": {
"@plasmicapp/host": "^1.0.68",
"@plasmicapp/react-web": "^0.2.241",
"@plasmicpkgs/react-youtube": "^7.13.76",
"@swc/helpers": "^0.5.1",
"dompurify": "^2.3.10",
"isomorphic-unfetch": "^3.1.0",
"jsdom": "^20.0.0",
"marked": "^4.0.18",
"next": "12.3.0",
"next-plugin-preact": "^3.0.6",
"next-seo": "^5.1.0",
"preact": "^10.10.2",
"preact-render-to-string": "^5.2.1",
"react": "npm:@preact/compat@^17.1.1",
"react-dom": "npm:@preact/compat@^17.1.1",
"react-ssr-prepass": "npm:preact-ssr-prepass@^1.2.0"
},
"devDependencies": {
"@types/dompurify": "^2.3.3",
"@types/jsdom": "^20.0.0",
"@types/marked": "^4.0.3",
"@types/node": "^17.0.23",
"@types/react": "17.0.40",
"copy-webpack-plugin": "^11.0.0",
"cypress": "^10.3.1",
"eslint": "8.10.0",
"eslint-config-next": "12.1.0",
"fork-ts-checker-webpack-plugin": "^7.2.13",
"mini-css-extract-plugin": "^2.6.1",
"next-sitemap": "1.9.12",
"typescript": "4.9.3",
"vercel": "^24.0.0",
"webpack": "^5.74.0",
"webpack-fix-style-only-entries": "^0.6.1"
}
}
I am also using Plasmic App for the web design, idk if that is generating the error, but probably no.
For solving the issue i tried to add:
"@swc/helpers": "0.5.1"
And also tried to swap to Next js 13 but when i do npm install I get:
npm ERR! code ERESOLVE