firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.14k stars 185 forks source link

build nextjs app lags #516

Closed mawnir closed 1 year ago

mawnir commented 1 year ago

when i try to build a new Nextjs project with firecms, the build process lags (The build stops) in - info Creating an optimized production build . the dev mode works fine. package.json:

{
  "name": "firecms-blog",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@emotion/react": "^11.11.1",
    "@emotion/styled": "^11.11.0",
    "@mui/icons-material": "^5",
    "@mui/lab": "5.0.0-alpha.135",
    "@mui/material": "^5",
    "@mui/x-date-pickers": "^5.0.0-beta.1",
    "@types/node": "20.4.1",
    "@types/react": "18.2.14",
    "@types/react-dom": "18.2.6",
    "autoprefixer": "10.4.14",
    "eslint": "8.44.0",
    "eslint-config-next": "13.4.9",
    "firebase": "^9",
    "firecms": "^2.0.0",
    "next": "13.4.9",
    "postcss": "8.4.25",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-router": "^6",
    "react-router-dom": "^6",
    "tailwindcss": "3.3.2",
    "typescript": "5.1.6"
  }
}
fgatti675 commented 1 year ago

Hi @mawnir What do you mean exactly by it lags?

mawnir commented 1 year ago

Hi @mawnir What do you mean exactly by it lags?

The build Stops at that point.

fgatti675 commented 1 year ago

You are probably running out of memory, having MUI and tailwind at the same time is a lot Try running this: export NODE_OPTIONS=--max-old-space-size=8192

mawnir commented 1 year ago

Didn't work after adding the line and removing Tailwind