Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⨯ TypeError: Cannot read properties of undefined (reading 'escape') #3213

Open
Waylon-Firework opened this issue Nov 16, 2024 · 1 comment

Comments

@Waylon-Firework
Copy link

When using the "next": "15.0.3", in the docker, there is an error.

 ⨯ TypeError: Cannot read properties of undefined (reading 'escape')
    at <unknown> (/app/.next/server/chunks/736.js:5:59233)
    at 6764 (/app/.next/server/chunks/736.js:5:59370)
    at t (/app/.next/server/webpack-runtime.js:1:143)
    at 2786 (/app/.next/server/app/myshopify/api/oauth/user/route.js:1:3913)
    at t (/app/.next/server/webpack-runtime.js:1:143)
    at 6759 (/app/.next/server/chunks/400.js:1:9253)
    at t (/app/.next/server/webpack-runtime.js:1:143)
    at 8794 (/app/.next/server/chunks/400.js:1:1449)
    at t (/app/.next/server/webpack-runtime.js:1:143)
    at 1354 (/app/.next/server/app/welcome/page.js:1:3698)

package.json

{
  "name": "auth",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev -p 7310",
    "build": "next build",
    "start": "next start -p 7310",
    "lint": "next lint"
  },
  "dependencies": {
    "moment": "^2.30.1",
    "mysql2": "^3.11.4",
    "next": "15.0.3",
    "next-auth": "5.0.0-beta.24",
    "react": "^18",
    "react-dom": "^18",
    "snowflake-uuid": "^1.0.0"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "eslint": "^8",
    "eslint-config-next": "15.0.3",
    "typescript": "^5"
  }
}

DockerFile

FROM node:23-alpine AS base
@lemurki
Copy link

lemurki commented Nov 18, 2024

We have the same error when trying to connect to the database from server action.

"dependencies": { "@reduxjs/toolkit": "^2.3.0", "@web/utils": "^0.0.21", "jose": "^5.9.6", "maxmind": "^4.3.22", "mysql2": "^3.11.4", "next": "^15.0.3", "next-share": "^0.27.0", "nodemailer": "^6.9.16", "prop-types": "^15.8.1", "react": "^19.0.0-rc.1", "react-dom": "^19.0.0-rc.1", "react-redux": "^9.1.2", "sass": "^1.80.6" },

But most likely the problem is in the server action.

vercel/next.js#72638

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants