SWC Helpers error
Unanswered
Thai posted this in #help-forum
Original message was deleted.
9 Replies
Original message was deleted
can you show your code?
@joulev can you show your code?
Thai
Hey! Wich part of my code you need? It's a Next js 12 project.
something so i can know what exactly could have caused the error
because just this single cryptic error is not enough for me to know what's wrong
see also
Thai
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:
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:
And also tried to swap to Next js 13 but when i do npm install I get:
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 ERESOLVEyour error seems to be a bug in whatever package but the bug seems to only be fixed in next 13 https://stackoverflow.com/q/76083438
Thai
ye i saw that post... i guess i need to try to go for next 13
aside from this post i cannot know why this happens so can't help, sorry