#TypeError: Cannot read properties of undefined (reading 'v2_meta') at Meta (/var/task/node_modul

1 messages · Page 1 of 1 (latest)

hard pivot
#

I'm having an app hosted on Vercel, and after upgrading to remix 1.8 I'm getting this error:
"@remix-run/node": "1.8.0", "@remix-run/react": "1.8.0", "@remix-run/serve": "1.8.0", "@remix-run/dev": "1.8.0", "@remix-run/eslint-config": "1.8.0",

I also updated my remix.config file with these contents:

`/** @type {import('@remix-run/dev').AppConfig} /
module.exports = {
ignoredRouteFiles: ["**/.
"],
future: {
v2_meta: true,
}
serverBuildTarget: "vercel",
server: process.env.NODE_ENV === "development" ? undefined : "./server.js",

// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
// publicPath: "/build/",

};`

according to this Github thread https://github.com/remix-run/remix/issues/4759

But I'm still seeing this error, and I don't know how to debug it really further. What did I do wrong?

GitHub

What version of Remix are you using? 1.6.7 Steps to Reproduce clone repository by ssh: git clone [email protected]:Lucas-Eduardo-Goncalves/pac.app.git then add this repository to vercel, and try. Expe...

orchid holly
#

add @remix-run/vercel to your package.json and set it to the same version

#

if not, they'll use an old version for that package, and everything goes south