Closed amadrzyk closed 3 years ago
Hi @amadrzyk, is your repo public? Could you post your build / deploy configuration? Is the folder that contains your project has the name with a space character (es. "my project")? This issue is correlate to https://github.com/netlify/netlify-plugin-nextjs/issues/563 for Essential Next.js Build Plugin.
Hi @NickNaso! Unfortunately my repo is not public, but it is one word (no spaces). Here's my package.json, which is basically the only thing in our build configuration (other than env variables):
{
"name": "myproject",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "export NODE_OPTIONS=\"--max-old-space-size=4096\" && export NEXT_PUBLIC_ENVIRONMENT=\"development\" && next dev",
"build": "next build",
"start": "next start",
},
"dependencies": {
"@brainhubeu/react-carousel": "^1.19.26",
"@bugsnag/js": "^7.3.0",
"@bugsnag/plugin-react": "^7.3.1",
"@fingerprintjs/fingerprintjs": "^3.0.5",
"@firebase/storage": "^0.3.35",
"@google-cloud/storage": "^5.5.0",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.11.2",
"@sendgrid/mail": "^7.2.6",
"@sentry/react": "^6.2.0",
"@sentry/tracing": "^6.2.0",
"@stripe/react-stripe-js": "^1.1.2",
"@stripe/stripe-js": "^1.9.0",
"@types/gapi": "^0.0.39",
"ace-builds": "^1.4.12",
"axios": "^0.19.2",
"bootstrap": "^4.5.3",
"classnames": "^2.2.6",
"clipboard": "^2.0.6",
"clsx": "^1.1.1",
"cookie": "^0.4.1",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"emoji-mart": "^3.0.1",
"fast-crc32c": "^2.0.0",
"file-loader": "^6.2.0",
"firebase": "^7.14.3",
"firebase-admin": "^8.12.1",
"firebase-functions": "^3.7.0",
"fs": "^0.0.1-security",
"gapi-script": "^1.0.2",
"googleapis": "^55.0.0",
"immutability-helper": "^3.0.2",
"js-md5": "^0.7.3",
"jwt-decode": "^2.2.0",
"latest": "^0.2.0",
"lodash": "^4.17.20",
"micro": "^9.3.4",
"moment": "^2.25.3",
"moment-timezone": "^0.5.33",
"mui-datatables": "^3.7.4",
"next": "^11.0.1",
"next-absolute-url": "^1.2.2",
"node": "^16.1.0",
"node-addon-api": "^4.0.0",
"nookies": "^2.3.0",
"objects-to-csv": "^1.3.6",
"query-string": "^6.12.1",
"rc-progress": "^3.1.4",
"re-resizable": "^6.5.0",
"react": "^17.0.2",
"react-ace": "9.3.0",
"react-adsense": "^0.1.0",
"react-async-script-loader": "^0.3.0",
"react-beautiful-dnd": "^13.0.0",
"react-bootstrap": "^1.3.0",
"react-clipboard.js": "^2.0.16",
"react-color": "^2.18.1",
"react-confetti": "^5.1.0",
"react-datepicker": "^3.0.0",
"react-dom": "16.13.1",
"react-dropzone": "^11.2.4",
"react-ga": "^3.0.0",
"react-google-autocomplete": "^1.2.6",
"react-hotjar": "^2.2.1",
"react-iframe": "^1.8.0",
"react-inline-script": "^1.2.0",
"react-input-range": "^1.3.0",
"react-ionicons": "^3.1.4",
"react-loading-skeleton": "^2.1.1",
"react-no-ssr": "^1.1.0",
"react-places-autocomplete": "^7.2.1",
"react-responsive-masonry": "^2.1.0",
"react-toastify": "^6.0.5",
"react-twitter-widgets": "^1.9.5",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^1.2.1",
"sib-api-v3-sdk": "^8.1.1",
"stripe": "^8.90.0",
"uniqid": "^5.2.0",
"uuid": "^8.3.2",
"xhr2": "^0.2.0"
},
"prettier": {
"useTabs": true,
"tabWidth": 4,
"printWidth": 80
},
"devDependencies": {
"eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
"prettier": "^2.0.5",
"prop-types": "^15.7.2",
"typescript": "^3.9.3"
}
}
also tsconfig.json (not sure if relevant):
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"types": [
"gapi"
]
},
"exclude": ["node_modules"],
"include": ["next-env.d.ts", "pages/*.ts"]
}
Small bump 🙇♂️ @NickNaso
Hi @amadrzyk, I tried to reproduce your error deploying the Netifly startter kit https://github.com/NickNaso/next-netlify-starter but I cannot able to obtain your error.
@amadrzyk It looks like you're using outdated versions of npm
(v2.15.12) and node-gyp
(v3.6.0), both released in March 2017, please can you upgrade.
Since there seems to be answers and no response for a few months I'm going to close this. @amadrzyk please let us know if that was not the right thing to do.
Hello! I'm trying to deploy my NextJS app onto Netlify, but I'm getting the following build/deploy errors:
and a little lower in the logs:
Any ideas on how to proceed? 🙇