Here is the following error when I am trying to reach next js serverside pages
{
“errorType”: “Runtime.UserCodeSyntaxError”,
“errorMessage”: “SyntaxError: Unexpected token ‘?’”,
“trace”: [
“Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token ‘?’”,
" at _loadUserApp (/var/runtime/UserFunction.js:98:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object. (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:999:30)",
" at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)",
" at Module.load (internal/modules/cjs/loader.js:863:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
" at internal/main/run_main_module.js:17:47"
]
}
Hey there, @salimsa7
Thanks so much for reaching out, and welcome to the Netlify Forums! Sorry to hear you have encountered an obstacle.
Before we can help you, we need a little more information on the issues you are facing. Additionally, can you confirm you are using the beta version of our next.js plugin? You can find info on that here.
Please share:
- The name of your build instance: “example-jones.netlify.com”
- Your project repo
- You deploy log. With next builds, this often has a lot of clues that can help us debug. It is always great to start by reading these!
- Any error messages you have received in your terminal window or in the developer console
Thanks so much,
Hillary
Hi @hillary
Thanks for your response. Please find the below details as you mentioned
-
Sorry can’t provide repo details.
-
Deploy Log
5:44:28 PM: Build ready to start
5:44:35 PM: build-image version: 8925038cf853b22d6397cdcb9904ac88b66bb383 (focal)
5:44:35 PM: build-image tag: v4.5.0
5:44:35 PM: buildbot version: c0e8ffa453e19757f422ac0b6b14bc1b57e53b59
5:44:35 PM: Building without cache
5:44:35 PM: Starting to prepare the repo for build
5:44:36 PM: No cached dependencies found. Cloning fresh repo
5:44:36 PM: git clone https://github.com/salimsa7/Burrra
5:45:04 PM: Preparing Git Reference refs/heads/main
5:45:06 PM: Parsing package.json dependencies
5:45:06 PM: Starting build script
5:45:06 PM: Installing dependencies
5:45:06 PM: Python version set to 2.7
5:45:07 PM: v16.13.0 is already installed.
5:45:08 PM: Now using node v16.13.0 (npm v8.1.0)
5:45:08 PM: Started restoring cached build plugins
5:45:08 PM: Finished restoring cached build plugins
5:45:08 PM: Attempting ruby version 2.7.2, read from environment
5:45:09 PM: Using ruby version 2.7.2
5:45:10 PM: Using PHP version 8.0
5:45:10 PM: Started restoring cached node modules
5:45:13 PM: Finished restoring cached node modules
5:45:14 PM: Installing NPM modules using NPM version 8.1.0
5:45:16 PM: npm WARN old lockfile
5:45:16 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
5:45:16 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
5:45:16 PM: npm WARN old lockfile
5:45:16 PM: npm WARN old lockfile This is a one-time fix-up, please be patient…
5:45:16 PM: npm WARN old lockfile
5:45:35 PM: npm WARN EBADENGINE Unsupported engine {
5:45:35 PM: npm WARN EBADENGINE package: ‘react-lottie@1.2.3’,
5:45:35 PM: npm WARN EBADENGINE required: { npm: ‘^3.0.0’ },
5:45:35 PM: npm WARN EBADENGINE current: { node: ‘v16.13.0’, npm: ‘8.1.0’ }
5:45:35 PM: npm WARN EBADENGINE }
5:45:56 PM: npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
5:45:56 PM: npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
5:45:56 PM: npm WARN deprecated har-validator@5.1.5: this library is no longer supported
5:45:56 PM: npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
5:45:57 PM: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
5:45:58 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
5:45:59 PM: npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
5:46:00 PM: npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
5:46:01 PM: npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
5:46:02 PM: npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
5:46:03 PM: npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
5:46:04 PM: npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
5:46:07 PM: npm WARN deprecated eslint-loader@3.0.3: This loader has been deprecated. Please use eslint-webpack-plugin
5:46:07 PM: npm WARN deprecated html-webpack-plugin@4.0.0-beta.11: please switch to a stable version
5:46:09 PM: npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
5:46:11 PM: npm WARN deprecated @hapi/pinpoint@1.0.2: Moved to ‘npm install @sideway/pinpoint’
5:46:12 PM: npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
5:46:12 PM: npm WARN deprecated @hapi/formula@1.2.0: Moved to ‘npm install @sideway/formula’
5:46:12 PM: npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
5:46:12 PM: npm WARN deprecated @hapi/address@2.1.4: Moved to ‘npm install @sideway/address’
5:46:12 PM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
5:46:15 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:16 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:16 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:16 PM: npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
5:46:17 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:18 PM: npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
5:46:18 PM: npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
5:46:19 PM: npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:20 PM: npm WARN deprecated @hapi/joi@15.1.1: Switch to ‘npm install joi’
5:46:23 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:24 PM: npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:26 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
5:46:26 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:26 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:27 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:28 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:28 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
5:46:29 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
5:46:29 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
5:46:30 PM: npm WARN deprecated @hapi/joi@16.1.8: Switch to ‘npm install joi’
5:46:48 PM: npm WARN deprecated core-js@2.6.11: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
5:47:13 PM: added 2611 packages, and audited 2612 packages in 2m
5:47:13 PM: 158 packages are looking for funding
5:47:13 PM: runnpm fund
for details
5:47:13 PM: 93 vulnerabilities (2 low, 64 moderate, 25 high, 2 critical)
5:47:13 PM: To address issues that do not require attention, run:
5:47:13 PM: npm audit fix
5:47:13 PM: To address all issues (including breaking changes), run:
5:47:13 PM: npm audit fix --force
5:47:13 PM: Runnpm audit
for details.
5:47:13 PM: NPM modules installed
5:47:13 PM: Started restoring cached go cache
5:47:13 PM: Finished restoring cached go cache
5:47:13 PM: go version go1.16.5 linux/amd64
5:47:13 PM: go version go1.16.5 linux/amd64
5:47:13 PM: Installing missing commands
5:47:13 PM: Verify run directory
5:47:15 PM:
5:47:15 PM: ────────────────────────────────────────────────────────────────
5:47:15 PM: Netlify Build
5:47:15 PM: ────────────────────────────────────────────────────────────────
5:47:15 PM:
5:47:15 PM: ❯ Version
5:47:15 PM: @netlify/build 19.0.6
5:47:15 PM:
5:47:15 PM: ❯ Flags
5:47:15 PM: baseRelDir: true
5:47:15 PM: buildId: 61a0e4bcd7a1090b6cd8364a
5:47:15 PM: deployId: 61a0e4bcd7a1090b6cd8364c
5:47:15 PM:
5:47:15 PM: ❯ Current directory
5:47:15 PM: /opt/build/repo
5:47:15 PM:
5:47:15 PM: ❯ Config file
5:47:15 PM: No config file was defined: using default values.
5:47:15 PM:
5:47:15 PM: ❯ Context
5:47:15 PM: production
5:47:15 PM:
5:47:15 PM: ❯ Installing plugins
5:47:15 PM: - @netlify/plugin-nextjs@3.9.2
5:47:26 PM:
5:47:26 PM: ❯ Loading plugins
5:47:26 PM: - @netlify/plugin-nextjs@3.9.2 from Netlify app
5:47:26 PM:
5:47:26 PM: ────────────────────────────────────────────────────────────────
5:47:26 PM: 1. @netlify/plugin-nextjs (onPreBuild event)
5:47:26 PM: ────────────────────────────────────────────────────────────────
5:47:26 PM:
5:47:26 PM: Using Next.js 12.0.4
5:47:26 PM: Warning: support for Next.js >=11.1.0 is experimental
5:47:28 PM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
5:47:28 PM: The “target” config property must be one of “serverless”, “experimental-serverless-trace”. Building with “serverless” target.
5:47:28 PM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
5:47:28 PM: No Next.js cache to restore.
5:47:28 PM:
5:47:28 PM: (@netlify/plugin-nextjs onPreBuild completed in 2s)
5:47:28 PM:
5:47:28 PM: ────────────────────────────────────────────────────────────────
5:47:28 PM: 2. Build command from Netlify app
5:47:28 PM: ────────────────────────────────────────────────────────────────
5:47:28 PM:
5:47:28 PM: $ npm run build
5:47:29 PM: > burrra@0.0.1 build
5:47:29 PM: > next build
5:47:31 PM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
5:47:31 PM: info - Checking validity of types…
5:47:31 PM: info - Creating an optimized production build…
5:47:32 PM: > [PWA] Compile client (static)
5:47:32 PM: > [PWA] Auto register service worker with: /opt/build/repo/node_modules/next-pwa/register.js
5:47:32 PM: > [PWA] Service worker: /opt/build/repo/public/sw.js
5:47:32 PM: > [PWA] url: /sw.js
5:47:32 PM: > [PWA] scope: /
5:47:32 PM: > [PWA] Fallback to precache routes when fetch failed from cache or network:
5:47:32 PM: > [PWA] document (page): /_offline
5:47:32 PM: > [PWA] image: /logogray.svg
5:47:32 PM: > [PWA] Inject manifest in /opt/build/repo/service-worker.js
5:47:32 PM: > [PWA] Compile server
5:48:29 PM: warn - Compiled with warnings
5:48:29 PM: /_next/static/chunks/pages/_app-bedd786dee5dc990.js is 2.35 MB, and won’t be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
5:48:29 PM: info - Collecting page data…
5:48:38 PM: info - Generating static pages (0/37)
5:48:39 PM: info - Generating static pages (9/37)
5:48:39 PM: info - Generating static pages (18/37)
5:48:39 PM: info - Generating static pages (27/37)
5:48:39 PM: info - Generating static pages (37/37)
5:48:39 PM: info - Finalizing page optimization…
5:48:39 PM: Page Size First Load JS
5:48:39 PM: ┌ ○ / 1.61 kB 727 kB
5:48:39 PM: ├ /_app 0 B 726 kB
5:48:39 PM: ├ ○ /_offline 322 B 732 kB
5:48:39 PM: ├ λ /[user] 1.51 kB 737 kB
5:48:39 PM: ├ ○ /[user]/disliked 1.52 kB 737 kB
5:48:39 PM: ├ ○ /[user]/disliked/list 1.53 kB 737 kB
5:48:39 PM: ├ ○ /[user]/follower 636 B 729 kB
5:48:39 PM: ├ ○ /[user]/following 637 B 729 kB
5:48:39 PM: ├ ○ /[user]/liked 1.51 kB 737 kB
5:48:39 PM: ├ ○ /[user]/liked/list 1.51 kB 737 kB
5:48:39 PM: ├ ○ /[user]/list 1.5 kB 737 kB
5:48:39 PM: ├ ○ /[user]/saved 1.51 kB 737 kB
5:48:39 PM: ├ ○ /[user]/saved/list 1.51 kB 737 kB
5:48:39 PM: ├ ○ /[user]/tagged 1.53 kB 737 kB
5:48:39 PM: ├ ○ /[user]/tagged/list 1.53 kB 737 kB
5:48:39 PM: ├ ○ /404 5.26 kB 731 kB
5:48:39 PM: ├ ○ /500 641 B 726 kB
5:48:39 PM: ├ ○ /comments/[cmntid] 3.06 kB 732 kB
5:48:39 PM: ├ ○ /compose/thought 191 B 726 kB
5:48:39 PM: ├ ○ /disclaimer 2.13 kB 728 kB
5:48:39 PM: ├ ○ /dmca 1.56 kB 727 kB
5:48:39 PM: ├ ○ /fallback 326 B 732 kB
5:48:39 PM: ├ λ /feed/[feedid] 188 B 726 kB
5:48:39 PM: ├ ○ /forgot 2.52 kB 732 kB
5:48:39 PM: ├ ○ /grid 505 B 726 kB
5:48:39 PM: ├ ○ /hash/[hash] (344 ms) 649 B 726 kB
5:48:39 PM: ├ ○ /hash/[hash]/list 654 B 726 kB
5:48:39 PM: ├ ○ /imageview/[imageview]/[altdata] 199 B 726 kB
5:48:39 PM: ├ ○ /login 9.02 kB 739 kB
5:48:39 PM: ├ ○ /notification 708 B 729 kB
5:48:39 PM: ├ ○ /privacy (560 ms) 2.77 kB 728 kB
5:48:39 PM: ├ ○ /recent 651 B 729 kB
5:48:39 PM: ├ ○ /report (567 ms) 560 B 726 kB
5:48:39 PM: ├ ○ /search 2.67 kB 745 kB
5:48:39 PM: ├ ○ /search/[q] 2.71 kB 745 kB
5:48:39 PM: ├ ○ /setting 8.44 kB 773 kB
5:48:39 PM: ├ ○ /signup 7.65 kB 771 kB
5:48:39 PM: ├ ○ /terms 3.94 kB 730 kB
5:48:39 PM: ├ ○ /worldfeed 447 B 726 kB
5:48:39 PM: └ ○ /worldfeed/list 457 B 726 kB
5:48:39 PM: + First Load JS shared by all 726 kB
5:48:39 PM: ├ chunks/framework-7d65b1ea44a032c9.js 42.1 kB
5:48:39 PM: ├ chunks/main-9d687912fe4cfede.js 34.5 kB
5:48:39 PM: ├ chunks/pages/_app-bedd786dee5dc990.js 647 kB
5:48:39 PM: ├ chunks/webpack-1c04c8f9fd3225ea.js 1.92 kB
5:48:39 PM: └ css/b7a85e0b3ddb4987.css 3.79 kB
5:48:39 PM: λ (Lambda) server-side renders at runtime (uses getInitialProps or getServerSideProps)
5:48:39 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
5:48:40 PM:
5:48:40 PM: (build.command completed in 1m 11.1s)
5:48:40 PM:
5:48:40 PM: ────────────────────────────────────────────────────────────────
5:48:40 PM: 3. @netlify/plugin-nextjs (onBuild event)
5:48:40 PM: ────────────────────────────────────────────────────────────────
5:48:40 PM:
5:48:40 PM: Detected Next.js site. Copying files…
5:48:40 PM: ** Running Next on Netlify package **
5:48:40 PM: Next on Netlify
5:48:40 PM: Copying public folder to /opt/build/repo/out
5:48:40 PM: Copying static NextJS assets to /opt/build/repo/out
5:48:40 PM: Setting up API endpoints as Netlify Functions in /opt/build/repo/.netlify/functions-internal
5:48:40 PM: Setting up pages with getInitialProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
5:48:40 PM: Setting up pages with getServerSideProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
5:48:40 PM: Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo/out
5:48:40 PM: Setting up pages with getStaticProps and fallback: true as Netlify Functions in /opt/build/repo/.netlify/functions-internal
5:48:40 PM: Setting up pages with getStaticProps and revalidation interval as Netlify Functions in /opt/build/repo/.netlify/functions-internal
5:48:40 PM: Copying pre-rendered pages without props to /opt/build/repo/out
5:48:40 PM: Building 39 pages
5:48:40 PM: Setting up redirects
5:48:40 PM: Setting up headers
5:48:40 PM: Success! All done!
5:48:40 PM:
5:48:40 PM: (@netlify/plugin-nextjs onBuild completed in 184ms)
5:48:40 PM:
5:48:40 PM: ────────────────────────────────────────────────────────────────
5:48:40 PM: 4. Functions bundling
5:48:40 PM: ────────────────────────────────────────────────────────────────
5:48:40 PM:
5:48:40 PM: Packaging Functions from .netlify/functions-internal directory:
5:48:40 PM: - next_feed_feedid/next_feed_feedid.js
5:48:40 PM: - next_image/next_image.js
5:48:40 PM: - next_user/next_user.js
5:48:40 PM:
5:49:12 PM:
5:49:12 PM: (Functions bundling completed in 32.1s)
5:49:12 PM:
5:49:12 PM: ────────────────────────────────────────────────────────────────
5:49:12 PM: 5. @netlify/plugin-nextjs (onPostBuild event)
5:49:12 PM: ────────────────────────────────────────────────────────────────
5:49:12 PM:
5:49:13 PM: Next.js cache saved.
5:49:13 PM:
5:49:13 PM: For faster deploy times, build IDs should be set to a static value.
5:49:13 PM: To do this, set generateBuildId: () => ‘build’ in your next.config.js
5:49:13 PM:
5:49:13 PM: (@netlify/plugin-nextjs onPostBuild completed in 765ms)
5:49:13 PM:
5:49:13 PM: ────────────────────────────────────────────────────────────────
5:49:13 PM: 6. Deploy site
5:49:13 PM: ────────────────────────────────────────────────────────────────
5:49:13 PM:
5:49:13 PM: Starting to deploy site from ‘out’
5:49:13 PM: Creating deploy tree
5:49:13 PM: Creating deploy upload records
5:49:13 PM: 39 new files to upload
5:49:13 PM: 3 new functions to upload
5:49:18 PM: Site deploy was successfully initiated
5:49:18 PM:
5:49:18 PM: (Deploy site completed in 5.8s)
5:49:19 PM:
5:49:19 PM: ────────────────────────────────────────────────────────────────
5:49:19 PM: Netlify Build Complete
5:49:19 PM: ────────────────────────────────────────────────────────────────
5:49:19 PM:
5:49:19 PM: (Netlify Build completed in 2m 3.6s)
5:49:19 PM: Starting post processing
5:49:19 PM: Post processing - HTML
5:49:19 PM: Caching artifacts
5:49:19 PM: Started saving node modules
5:49:19 PM: Finished saving node modules
5:49:19 PM: Started saving build plugins
5:49:19 PM: Finished saving build plugins
5:49:19 PM: Started saving pip cache
5:49:19 PM: Finished saving pip cache
5:49:19 PM: Started saving emacs cask dependencies
5:49:19 PM: Finished saving emacs cask dependencies
5:49:19 PM: Started saving maven dependencies
5:49:19 PM: Finished saving maven dependencies
5:49:19 PM: Started saving boot dependencies
5:49:19 PM: Finished saving boot dependencies
5:49:19 PM: Started saving rust rustup cache
5:49:19 PM: Finished saving rust rustup cache
5:49:19 PM: Started saving go dependencies
5:49:19 PM: Finished saving go dependencies
5:49:21 PM: Build script success
5:49:22 PM: Post processing - header rules
5:49:22 PM: Post processing - redirect rules
5:49:22 PM: Post processing done
5:49:22 PM: Site is live
5:50:32 PM: Finished processing build request in 5m57.802085381s -
Error Message
{
“errorType”: “Runtime.UserCodeSyntaxError”,
“errorMessage”: “SyntaxError: Unexpected token ‘?’”,
“trace”: [
“Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token ‘?’”,
" at _loadUserApp (/var/runtime/UserFunction.js:98:13)“,
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)”,
" at Object. (/var/runtime/index.js:43:30)“,
" at Module._compile (internal/modules/cjs/loader.js:999:30)”,
" at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)“,
" at Module.load (internal/modules/cjs/loader.js:863:32)”,
" at Function.Module._load (internal/modules/cjs/loader.js:708:14)“,
" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)”,
" at internal/main/run_main_module.js:17:47"
]
}
NOTE: - Website working fine issue only occurs when trying to access server-side page e.g https://61a0e4bcd7a1090b6cd8364c--burrra.netlify.app/devianart697931745
Hey there, @salimsa7
So from your deploy log, it looks like you’re not using our beta plugin. You are currently using @netlify/plugin-nextjs@3.9.2
. Can you try using the most recent version of our beta plugin? I have linked it here.
Hi @hillary
I have installed the plugin but now it’s shows the internal server error.
Please find the deploy log.
10:43:18 AM: Build ready to start
10:43:20 AM: build-image version: 8925038cf853b22d6397cdcb9904ac88b66bb383 (focal)
10:43:20 AM: build-image tag: v4.5.0
10:43:20 AM: buildbot version: c0e8ffa453e19757f422ac0b6b14bc1b57e53b59
10:43:20 AM: Fetching cached dependencies
10:43:21 AM: Starting to download cache of 489.9MB
10:43:23 AM: Finished downloading cache in 2.578746606s
10:43:23 AM: Starting to extract cache
10:43:41 AM: Finished extracting cache in 18.073459186s
10:43:41 AM: Finished fetching cache in 20.831256523s
10:43:41 AM: Starting to prepare the repo for build
10:43:42 AM: Preparing Git Reference refs/heads/main
10:44:00 AM: Parsing package.json dependencies
10:44:00 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: '.next' versus 'out' in the Netlify UI
10:44:00 AM: Starting build script
10:44:00 AM: Installing dependencies
10:44:00 AM: Python version set to 2.7
10:44:01 AM: Started restoring cached node version
10:44:02 AM: Finished restoring cached node version
10:44:03 AM: v16.13.0 is already installed.
10:44:04 AM: Now using node v16.13.0 (npm v8.1.0)
10:44:04 AM: Started restoring cached build plugins
10:44:04 AM: Finished restoring cached build plugins
10:44:04 AM: Attempting ruby version 2.7.2, read from environment
10:44:05 AM: Using ruby version 2.7.2
10:44:06 AM: Using PHP version 8.0
10:44:06 AM: Started restoring cached node modules
10:44:09 AM: Finished restoring cached node modules
10:44:10 AM: Installing NPM modules using NPM version 8.1.0
10:44:13 AM: npm WARN EBADENGINE Unsupported engine {
10:44:13 AM: npm WARN EBADENGINE package: 'react-lottie@1.2.3',
10:44:13 AM: npm WARN EBADENGINE required: { npm: '^3.0.0' },
10:44:13 AM: npm WARN EBADENGINE current: { node: 'v16.13.0', npm: '8.1.0' }
10:44:13 AM: npm WARN EBADENGINE }
10:44:30 AM: added 128 packages, removed 8 packages, changed 7 packages, and audited 2713 packages in 20s
10:44:30 AM: 10 packages are looking for funding
10:44:30 AM: run `npm fund` for details
10:44:30 AM: 86 vulnerabilities (2 low, 60 moderate, 22 high, 2 critical)
10:44:30 AM: To address issues that do not require attention, run:
10:44:30 AM: npm audit fix
10:44:30 AM: To address all issues (including breaking changes), run:
10:44:30 AM: npm audit fix --force
10:44:30 AM: Run `npm audit` for details.
10:44:30 AM: NPM modules installed
10:44:30 AM: Started restoring cached go cache
10:44:30 AM: Finished restoring cached go cache
10:44:30 AM: go version go1.16.5 linux/amd64
10:44:30 AM: go version go1.16.5 linux/amd64
10:44:30 AM: Installing missing commands
10:44:30 AM: Verify run directory
10:44:32 AM:
10:44:32 AM: ────────────────────────────────────────────────────────────────
10:44:32 AM: Netlify Build
10:44:32 AM: ────────────────────────────────────────────────────────────────
10:44:32 AM:
10:44:32 AM: ❯ Version
10:44:32 AM: @netlify/build 19.0.6
10:44:32 AM:
10:44:32 AM: ❯ Flags
10:44:32 AM: baseRelDir: true
10:44:32 AM: buildId: 61a1d386b862e8000782b5b0
10:44:32 AM: deployId: 61a1d386b862e8000782b5b2
10:44:32 AM:
10:44:32 AM: ❯ Current directory
10:44:32 AM: /opt/build/repo
10:44:32 AM:
10:44:32 AM: ❯ Config file
10:44:32 AM: /opt/build/repo/netlify.toml
10:44:32 AM:
10:44:32 AM: ❯ Context
10:44:32 AM: production
10:44:32 AM:
10:44:32 AM: ❯ Loading plugins
10:44:32 AM: - @netlify/plugin-nextjs@4.0.0-beta.11 from netlify.toml and package.json
10:44:33 AM:
10:44:33 AM: ────────────────────────────────────────────────────────────────
10:44:33 AM: 1. @netlify/plugin-nextjs (onPreBuild event)
10:44:33 AM: ────────────────────────────────────────────────────────────────
10:44:33 AM:
10:44:33 AM: Thank you for trying the Essential Next.js beta plugin.
10:44:33 AM: Please share feedback (both good and bad) at https://ntl.fyi/next-beta-feedback
10:44:34 AM: Next.js cache restored.
10:44:34 AM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
10:44:34 AM:
10:44:34 AM: (@netlify/plugin-nextjs onPreBuild completed in 812ms)
10:44:34 AM:
10:44:34 AM: ────────────────────────────────────────────────────────────────
10:44:34 AM: 2. Build command from Netlify app
10:44:34 AM: ────────────────────────────────────────────────────────────────
10:44:34 AM:
10:44:34 AM: $ npm run build
10:44:34 AM: > burrra@0.0.1 build
10:44:34 AM: > next build
10:44:36 AM: warn - SWC minify beta enabled. https://nextjs.org/docs/messages/swc-minify-enabled
10:44:37 AM: info - Checking validity of types...
10:44:37 AM: info - Creating an optimized production build...
10:44:37 AM: > [PWA] Compile client (static)
10:44:37 AM: > [PWA] Auto register service worker with: /opt/build/repo/node_modules/next-pwa/register.js
10:44:37 AM: > [PWA] Service worker: /opt/build/repo/public/sw.js
10:44:37 AM: > [PWA] url: /sw.js
10:44:37 AM: > [PWA] scope: /
10:44:37 AM: > [PWA] Fallback to precache routes when fetch failed from cache or network:
10:44:37 AM: > [PWA] document (page): /_offline
10:44:37 AM: > [PWA] image: /logogray.svg
10:44:37 AM: > [PWA] Inject manifest in /opt/build/repo/service-worker.js
10:44:37 AM: > [PWA] Compile server
10:45:41 AM: warn - Compiled with warnings
10:45:41 AM: /_next/static/chunks/pages/_app-bedd786dee5dc990.js is 2.35 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
10:45:41 AM: info - Collecting page data...
10:45:48 AM: (node:1544) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:48 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:48 AM: (node:1537) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:48 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:49 AM: (node:1579) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:49 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:49 AM: (node:1565) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:49 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:49 AM: (node:1558) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:49 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:50 AM: (node:1551) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:50 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:50 AM: (node:1572) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/build/repo/node_modules/react-query/devtools/package.json' of '/index.js'. Please either fix that or report it to the module author
10:45:50 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:45:54 AM: info - Generating static pages (0/37)
10:45:54 AM: info - Generating static pages (9/37)
10:45:54 AM: info - Generating static pages (18/37)
10:45:54 AM: info - Generating static pages (27/37)
10:45:54 AM: info - Generating static pages (37/37)
10:45:55 AM: info - Finalizing page optimization...
10:45:55 AM: Page Size First Load JS
10:45:55 AM: ┌ ○ / (330 ms) 1.61 kB 727 kB
10:45:55 AM: ├ /_app 0 B 726 kB
10:45:55 AM: ├ ○ /_offline 322 B 732 kB
10:45:55 AM: ├ λ /[user] 1.51 kB 737 kB
10:45:55 AM: ├ ○ /[user]/disliked 1.52 kB 737 kB
10:45:55 AM: ├ ○ /[user]/disliked/list 1.53 kB 737 kB
10:45:55 AM: ├ ○ /[user]/follower 636 B 729 kB
10:45:55 AM: ├ ○ /[user]/following 637 B 729 kB
10:45:55 AM: ├ ○ /[user]/liked 1.51 kB 737 kB
10:45:55 AM: ├ ○ /[user]/liked/list 1.51 kB 737 kB
10:45:55 AM: ├ ○ /[user]/list 1.5 kB 737 kB
10:45:55 AM: ├ ○ /[user]/saved 1.51 kB 737 kB
10:45:55 AM: ├ ○ /[user]/saved/list 1.51 kB 737 kB
10:45:55 AM: ├ ○ /[user]/tagged 1.53 kB 737 kB
10:45:55 AM: ├ ○ /[user]/tagged/list 1.53 kB 737 kB
10:45:55 AM: ├ ○ /404 5.26 kB 731 kB
10:45:55 AM: ├ ○ /500 641 B 726 kB
10:45:55 AM: ├ ○ /comments/[cmntid] 3.06 kB 732 kB
10:45:55 AM: ├ ○ /compose/thought 191 B 726 kB
10:45:55 AM: ├ ○ /disclaimer 2.13 kB 728 kB
10:45:55 AM: ├ ○ /dmca 1.56 kB 727 kB
10:45:55 AM: ├ ○ /fallback 326 B 732 kB
10:45:55 AM: ├ λ /feed/[feedid] 188 B 726 kB
10:45:55 AM: ├ ○ /forgot 2.52 kB 732 kB
10:45:55 AM: ├ ○ /grid (346 ms) 505 B 726 kB
10:45:55 AM: ├ ○ /hash/[hash] 649 B 726 kB
10:45:55 AM: ├ ○ /hash/[hash]/list 654 B 726 kB
10:45:55 AM: ├ ○ /imageview/[imageview]/[altdata] 199 B 726 kB
10:45:55 AM: ├ ○ /login 9.02 kB 739 kB
10:45:55 AM: ├ ○ /notification 708 B 729 kB
10:45:55 AM: ├ ○ /privacy (420 ms) 2.77 kB 728 kB
10:45:55 AM: ├ ○ /recent 651 B 729 kB
10:45:55 AM: ├ ○ /report (417 ms) 560 B 726 kB
10:45:55 AM: ├ ○ /search 2.67 kB 745 kB
10:45:55 AM: ├ ○ /search/[q] 2.71 kB 745 kB
10:45:55 AM: ├ ○ /setting (383 ms) 8.44 kB 773 kB
10:45:55 AM: ├ ○ /signup (369 ms) 7.65 kB 771 kB
10:45:55 AM: ├ ○ /terms 3.94 kB 730 kB
10:45:55 AM: ├ ○ /worldfeed 447 B 726 kB
10:45:55 AM: └ ○ /worldfeed/list 457 B 726 kB
10:45:55 AM: + First Load JS shared by all 726 kB
10:45:55 AM: ├ chunks/framework-7d65b1ea44a032c9.js 42.1 kB
10:45:55 AM: ├ chunks/main-9d687912fe4cfede.js 34.5 kB
10:45:55 AM: ├ chunks/pages/_app-bedd786dee5dc990.js 647 kB
10:45:55 AM: ├ chunks/webpack-1c04c8f9fd3225ea.js 1.92 kB
10:45:55 AM: └ css/b7a85e0b3ddb4987.css 3.79 kB
10:45:55 AM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
10:45:55 AM: ○ (Static) automatically rendered as static HTML (uses no initial props)
10:45:55 AM:
10:45:55 AM: (build.command completed in 1m 21.2s)
10:45:55 AM:
10:45:55 AM: ────────────────────────────────────────────────────────────────
10:45:55 AM: 3. @netlify/plugin-nextjs (onBuild event)
10:45:55 AM: ────────────────────────────────────────────────────────────────
10:45:55 AM:
10:45:55 AM: Moving static page files to serve from CDN...
10:45:55 AM: Moved 19 files
10:45:55 AM: Netlify configuration property "redirects" value changed to [
10:45:55 AM: {
10:45:55 AM: from: '/_next/image*',
10:45:55 AM: query: { url: ':url', w: ':width', q: ':quality' },
10:45:55 AM: to: '/_ipx/w_:width,q_:quality/:url',
10:45:55 AM: status: 301
10:45:55 AM: },
10:45:55 AM: { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
10:45:55 AM: { from: '/cache/*', to: '/404.html', status: 404, force: true },
10:45:55 AM: { from: '/server/*', to: '/404.html', status: 404, force: true },
10:45:55 AM: { from: '/serverless/*', to: '/404.html', status: 404, force: true },
10:45:55 AM: { from: '/traces', to: '/404.html', status: 404, force: true },
10:45:55 AM: {
10:45:55 AM: from: '/routes-manifest.json',
10:45:55 AM: to: '/404.html',
10:45:55 AM: status: 404,
10:45:55 AM: force: true
10:45:55 AM: },
10:45:55 AM: {
10:45:55 AM: from: '/build-manifest.json',
10:45:55 AM: to: '/404.html',
10:45:55 AM: status: 404,
10:45:55 AM: force: true
10:45:55 AM: },
10:45:55 AM: {
10:45:55 AM: from: '/prerender-manifest.json',
10:45:55 AM: to: '/404.html',
10:45:55 AM: status: 404,
10:45:55 AM: force: true
10:45:55 AM: },
10:45:55 AM: {
10:45:55 AM: from: '/react-loadable-manifest.json',
10:45:55 AM: to: '/404.html',
10:45:55 AM: status: 404,
10:45:55 AM: force: true
10:45:55 AM: },
10:45:55 AM: { from: '/BUILD_ID', to: '/404.html', status: 404, force: true },
10:45:55 AM: { from: '/_next/static/*', to: '/static/:splat', status: 200 },
10:45:55 AM: {
10:45:55 AM: from: '/api',
10:45:55 AM: to: '/.netlify/functions/___netlify-handler',
10:45:55 AM: status: 200
10:45:55 AM: },
10:45:55 AM: {
10:45:55 AM: from: '/api/*',
10:45:55 AM: to: '/.netlify/functions/___netlify-handler',
10:45:55 AM: status: 200
10:45:55 AM: },
10:45:55 AM: {
10:45:55 AM: from: '/*',
10:45:55 AM: to: '/.netlify/functions/___netlify-handler',
10:45:55 AM: status: 200,
10:45:55 AM: conditions: { Cookie: [Array] },
10:45:55 AM: force: true
10:45:55 AM: },
10:45:55 AM: {
10:45:55 AM: from: '/*',
10:45:55 AM: to: '/.netlify/functions/___netlify-handler',
10:45:55 AM: status: 200
10:45:55 AM: }
10:45:55 AM: ].
10:45:55 AM:
10:45:55 AM: (@netlify/plugin-nextjs onBuild completed in 82ms)
10:45:55 AM:
10:45:55 AM: ────────────────────────────────────────────────────────────────
10:45:55 AM: 4. Functions bundling
10:45:55 AM: ────────────────────────────────────────────────────────────────
10:45:55 AM:
10:45:55 AM: Packaging Functions from .netlify/functions-internal directory:
10:45:55 AM: - ___netlify-handler/___netlify-handler.js
10:45:55 AM: - ___netlify-odb-handler/___netlify-odb-handler.js
10:45:55 AM: - _ipx/_ipx.js
10:45:55 AM:
10:46:59 AM:
10:46:59 AM: (Functions bundling completed in 1m 4.2s)
10:46:59 AM:
10:46:59 AM: ────────────────────────────────────────────────────────────────
10:46:59 AM: 5. @netlify/plugin-nextjs (onPostBuild event)
10:46:59 AM: ────────────────────────────────────────────────────────────────
10:46:59 AM:
10:47:01 AM: Next.js cache saved.
10:47:01 AM:
10:47:01 AM: (@netlify/plugin-nextjs onPostBuild completed in 1.6s)
10:47:01 AM:
10:47:01 AM: ────────────────────────────────────────────────────────────────
10:47:01 AM: 6. Deploy site
10:47:01 AM: ────────────────────────────────────────────────────────────────
10:47:01 AM:
10:47:01 AM: Starting to deploy site from '.next'
10:47:01 AM: Creating deploy tree
10:47:01 AM: Creating deploy upload records
10:47:02 AM: 107 new files to upload
10:47:02 AM: 3 new functions to upload
10:47:10 AM: Starting post processing
10:47:10 AM: Post processing - HTML
10:47:12 AM: Post processing - header rules
10:47:12 AM: Post processing - redirect rules
10:47:12 AM: Post processing done
10:47:13 AM: Site is live ✨
10:47:13 AM: Finished waiting for live deploy in 4.072564212s
10:47:13 AM: Site deploy was successfully initiated
10:47:13 AM:
10:47:13 AM: (Deploy site completed in 12.5s)
10:47:13 AM:
10:47:13 AM: ────────────────────────────────────────────────────────────────
10:47:13 AM: 7. @netlify/plugin-nextjs (onEnd event)
10:47:13 AM: ────────────────────────────────────────────────────────────────
10:47:13 AM:
10:47:13 AM: Thank you for trying the Essential Next.js beta plugin.
10:47:13 AM: Please share feedback (both good and bad) at https://ntl.fyi/next-beta-feedback
10:47:13 AM:
10:47:13 AM: (@netlify/plugin-nextjs onEnd completed in 4ms)
10:47:13 AM:
10:47:13 AM: A "_redirects" file is present in the repository but is missing in the publish directory ".next".
10:47:13 AM:
10:47:13 AM: ────────────────────────────────────────────────────────────────
10:47:13 AM: Netlify Build Complete
10:47:13 AM: ────────────────────────────────────────────────────────────────
10:47:13 AM:
10:47:13 AM: (Netlify Build completed in 2m 41.5s)
10:47:14 AM: Caching artifacts
10:47:14 AM: Started saving node modules
10:47:14 AM: Finished saving node modules
10:47:14 AM: Started saving build plugins
10:47:14 AM: Finished saving build plugins
10:47:14 AM: Started saving pip cache
10:47:14 AM: Finished saving pip cache
10:47:14 AM: Started saving emacs cask dependencies
10:47:14 AM: Finished saving emacs cask dependencies
10:47:14 AM: Started saving maven dependencies
10:47:14 AM: Finished saving maven dependencies
10:47:14 AM: Started saving boot dependencies
10:47:14 AM: Finished saving boot dependencies
10:47:14 AM: Started saving rust rustup cache
10:47:14 AM: Finished saving rust rustup cache
10:47:14 AM: Started saving go dependencies
10:47:14 AM: Finished saving go dependencies
10:47:14 AM: Build script success
10:48:28 AM: Finished processing build request in 5m7.316505372s
Hi @salimsa7,
I checked this: https://burrra.netlify.app/, but I’m not seeing any internal server error.
Hi @hrishikesh
Please follow the below motioned build
https://61a3336c6ee8418b3de23830--burrra.netlify.app/
Only the server side pages have that issue Here is the link https://61a3336c6ee8418b3de23830--burrra.netlify.app/naturelove151412257
Why do follow that build?
Here the deploy ID is different than the one you’ve linked to.
@hrishikesh I have updated my next js version and included new features which is important for the users that’s why I am trying new build
11:44:45 AM: Build ready to start
11:44:47 AM: build-image version: 8925038cf853b22d6397cdcb9904ac88b66bb383 (focal)
11:44:47 AM: build-image tag: v4.5.0
11:44:47 AM: buildbot version: c0e8ffa453e19757f422ac0b6b14bc1b57e53b59
11:44:47 AM: Building without cache
11:44:47 AM: Starting to prepare the repo for build
11:44:47 AM: No cached dependencies found. Cloning fresh repo
11:44:47 AM: git clone https://github.com/salimsa7/Burrra
11:45:22 AM: Preparing Git Reference refs/heads/main
11:45:24 AM: Parsing package.json dependencies
11:45:25 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘.next’ versus ‘out’ in the Netlify UI
11:45:25 AM: Starting build script
11:45:25 AM: Installing dependencies
11:45:25 AM: Python version set to 2.7
11:45:26 AM: v16.13.0 is already installed.
11:45:27 AM: Now using node v16.13.0 (npm v8.1.0)
11:45:27 AM: Started restoring cached build plugins
11:45:27 AM: Finished restoring cached build plugins
11:45:27 AM: Attempting ruby version 2.7.2, read from environment
11:45:29 AM: Using ruby version 2.7.2
11:45:29 AM: Using PHP version 8.0
11:45:29 AM: Started restoring cached node modules
11:45:33 AM: Finished restoring cached node modules
11:45:33 AM: Installing NPM modules using NPM version 8.1.0
11:45:37 AM: npm WARN EBADENGINE Unsupported engine {
11:45:37 AM: npm WARN EBADENGINE package: ‘react-lottie@1.2.3’,
11:45:37 AM: npm WARN EBADENGINE required: { npm: ‘^3.0.0’ },
11:45:37 AM: npm WARN EBADENGINE current: { node: ‘v16.13.0’, npm: ‘8.1.0’ }
11:45:37 AM: npm WARN EBADENGINE }
11:47:32 AM: added 2712 packages, and audited 2713 packages in 2m
11:47:32 AM: 10 packages are looking for funding
11:47:32 AM: run npm fund
for details
11:47:32 AM: 89 vulnerabilities (2 low, 60 moderate, 25 high, 2 critical)
11:47:32 AM: To address issues that do not require attention, run:
11:47:32 AM: npm audit fix
11:47:32 AM: To address all issues (including breaking changes), run:
11:47:32 AM: npm audit fix --force
11:47:32 AM: Run npm audit
for details.
11:47:32 AM: NPM modules installed
11:47:33 AM: Started restoring cached go cache
11:47:33 AM: Finished restoring cached go cache
11:47:33 AM: go version go1.16.5 linux/amd64
11:47:33 AM: go version go1.16.5 linux/amd64
11:47:33 AM: Installing missing commands
11:47:33 AM: Verify run directory
11:47:34 AM:
11:47:34 AM: ────────────────────────────────────────────────────────────────
11:47:34 AM: Netlify Build
11:47:34 AM: ────────────────────────────────────────────────────────────────
11:47:34 AM:
11:47:34 AM: ❯ Version
11:47:34 AM: @netlify/build 19.0.6
11:47:34 AM:
11:47:34 AM: ❯ Flags
11:47:34 AM: baseRelDir: true
11:47:34 AM: buildId: 61a3336c6ee8418b3de2382e
11:47:34 AM: deployId: 61a3336c6ee8418b3de23830
11:47:34 AM:
11:47:34 AM: ❯ Current directory
11:47:34 AM: /opt/build/repo
11:47:34 AM:
11:47:34 AM: ❯ Config file
11:47:34 AM: /opt/build/repo/netlify.toml
11:47:34 AM:
11:47:34 AM: ❯ Context
11:47:34 AM: production
11:47:35 AM:
11:47:35 AM: ❯ Loading plugins
11:47:35 AM: - @netlify/plugin-nextjs@4.0.0-beta.11 from netlify.toml and package.json
11:47:35 AM:
11:47:35 AM: ────────────────────────────────────────────────────────────────
11:47:35 AM: 1. @netlify/plugin-nextjs (onPreBuild event)
11:47:35 AM: ────────────────────────────────────────────────────────────────
11:47:35 AM:
11:47:35 AM: Thank you for trying the Essential Next.js beta plugin.
11:47:35 AM: Please share feedback (both good and bad) at Issues · netlify/next-runtime · GitHub
11:47:35 AM: No Next.js cache to restore.
11:47:35 AM: Netlify configuration property “build.environment.NEXT_PRIVATE_TARGET” value changed.
11:47:36 AM:
11:47:36 AM: (@netlify/plugin-nextjs onPreBuild completed in 216ms)
11:47:36 AM:
11:47:36 AM: ────────────────────────────────────────────────────────────────
11:47:36 AM: 2. Build command from Netlify app
11:47:36 AM: ────────────────────────────────────────────────────────────────
11:47:36 AM:
11:47:36 AM: $ npm run build
11:47:36 AM: > burrra@0.0.1 build
11:47:36 AM: > next build
11:47:39 AM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
11:47:39 AM: warn - No build cache found. Please configure build caching for faster rebuilds. Read more: no-cache | Next.js
11:47:39 AM: info - Checking validity of types…
11:47:39 AM: info - Creating an optimized production build…
11:47:39 AM: > [PWA] Compile client (static)
11:47:39 AM: > [PWA] Auto register service worker with: /opt/build/repo/node_modules/next-pwa/register.js
11:47:39 AM: > [PWA] Service worker: /opt/build/repo/public/sw.js
11:47:39 AM: > [PWA] url: /sw.js
11:47:39 AM: > [PWA] scope: /
11:47:39 AM: > [PWA] Fallback to precache routes when fetch failed from cache or network:
11:47:39 AM: > [PWA] document (page): /_offline
11:47:39 AM: > [PWA] image: /logogray.svg
11:47:39 AM: > [PWA] Inject manifest in /opt/build/repo/service-worker.js
11:47:39 AM: > [PWA] Compile server
11:48:51 AM: warn - Compiled with warnings
11:48:51 AM: /_next/static/chunks/pages/_app-bedd786dee5dc990.js is 2.35 MB, and won’t be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
11:48:51 AM: info - Collecting page data…
11:48:58 AM: (node:1543) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:48:58 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:48:59 AM: (node:1564) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:48:59 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:48:59 AM: (node:1557) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:48:59 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:48:59 AM: (node:1571) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:48:59 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:48:59 AM: (node:1536) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:48:59 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:48:59 AM: (node:1578) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:48:59 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:49:00 AM: (node:1550) [DEP0128] DeprecationWarning: Invalid ‘main’ field in ‘/opt/build/repo/node_modules/react-query/devtools/package.json’ of ‘/index.js’. Please either fix that or report it to the module author
11:49:00 AM: (Use node --trace-deprecation ...
to show where the warning was created)
11:49:04 AM: info - Generating static pages (0/37)
11:49:04 AM: info - Generating static pages (9/37)
11:49:04 AM: info - Generating static pages (18/37)
11:49:05 AM: info - Generating static pages (27/37)
11:49:05 AM: info - Generating static pages (37/37)
11:49:05 AM: info - Finalizing page optimization…
11:49:05 AM: Page Size First Load JS
11:49:05 AM: ┌ ○ / 1.61 kB 727 kB
11:49:05 AM: ├ /_app 0 B 726 kB
11:49:05 AM: ├ ○ /_offline 322 B 732 kB
11:49:05 AM: ├ λ /[user] 1.51 kB 737 kB
11:49:05 AM: ├ ○ /[user]/disliked 1.52 kB 737 kB
11:49:05 AM: ├ ○ /[user]/disliked/list 1.53 kB 737 kB
11:49:05 AM: ├ ○ /[user]/follower 636 B 729 kB
11:49:05 AM: ├ ○ /[user]/following 637 B 729 kB
11:49:05 AM: ├ ○ /[user]/liked 1.51 kB 737 kB
11:49:05 AM: ├ ○ /[user]/liked/list 1.51 kB 737 kB
11:49:05 AM: ├ ○ /[user]/list 1.5 kB 737 kB
11:49:05 AM: ├ ○ /[user]/saved 1.51 kB 737 kB
11:49:05 AM: ├ ○ /[user]/saved/list 1.51 kB 737 kB
11:49:05 AM: ├ ○ /[user]/tagged 1.53 kB 737 kB
11:49:05 AM: ├ ○ /[user]/tagged/list 1.53 kB 737 kB
11:49:05 AM: ├ ○ /404 5.26 kB 731 kB
11:49:05 AM: ├ ○ /500 641 B 726 kB
11:49:05 AM: ├ ○ /comments/[cmntid] 3.06 kB 732 kB
11:49:05 AM: ├ ○ /compose/thought 191 B 726 kB
11:49:05 AM: ├ ○ /disclaimer 2.13 kB 728 kB
11:49:05 AM: ├ ○ /dmca 1.56 kB 727 kB
11:49:05 AM: ├ ○ /fallback 326 B 732 kB
11:49:05 AM: ├ λ /feed/[feedid] 188 B 726 kB
11:49:05 AM: ├ ○ /forgot 2.52 kB 732 kB
11:49:05 AM: ├ ○ /grid 505 B 726 kB
11:49:05 AM: ├ ○ /hash/[hash] (351 ms) 649 B 726 kB
11:49:05 AM: ├ ○ /hash/[hash]/list (351 ms) 654 B 726 kB
11:49:05 AM: ├ ○ /imageview/[imageview]/[altdata] 199 B 726 kB
11:49:05 AM: ├ ○ /login 9.02 kB 739 kB
11:49:05 AM: ├ ○ /notification 708 B 729 kB
11:49:05 AM: ├ ○ /privacy (317 ms) 2.77 kB 728 kB
11:49:05 AM: ├ ○ /recent 651 B 729 kB
11:49:05 AM: ├ ○ /report (319 ms) 560 B 726 kB
11:49:05 AM: ├ ○ /search 2.67 kB 745 kB
11:49:05 AM: ├ ○ /search/[q] 2.71 kB 745 kB
11:49:05 AM: ├ ○ /setting (323 ms) 8.44 kB 773 kB
11:49:05 AM: ├ ○ /signup (306 ms) 7.65 kB 771 kB
11:49:05 AM: ├ ○ /terms 3.94 kB 730 kB
11:49:05 AM: ├ ○ /worldfeed 447 B 726 kB
11:49:05 AM: └ ○ /worldfeed/list 457 B 726 kB
11:49:05 AM: + First Load JS shared by all 726 kB
11:49:05 AM: ├ chunks/framework-7d65b1ea44a032c9.js 42.1 kB
11:49:05 AM: ├ chunks/main-9d687912fe4cfede.js 34.5 kB
11:49:05 AM: ├ chunks/pages/_app-bedd786dee5dc990.js 647 kB
11:49:05 AM: ├ chunks/webpack-1c04c8f9fd3225ea.js 1.92 kB
11:49:05 AM: └ css/b7a85e0b3ddb4987.css 3.79 kB
11:49:05 AM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
11:49:05 AM: ○ (Static) automatically rendered as static HTML (uses no initial props)
11:49:05 AM:
11:49:05 AM: (build.command completed in 1m 29.6s)
11:49:05 AM:
11:49:05 AM: ────────────────────────────────────────────────────────────────
11:49:05 AM: 3. @netlify/plugin-nextjs (onBuild event)
11:49:05 AM: ────────────────────────────────────────────────────────────────
11:49:05 AM:
11:49:05 AM: Moving static page files to serve from CDN…
11:49:05 AM: Moved 19 files
11:49:05 AM: Netlify configuration property “redirects” value changed to [
11:49:05 AM: {
11:49:05 AM: from: ‘/next/image*',
11:49:05 AM: query: { url: ‘:url’, w: ‘:width’, q: ‘:quality’ },
11:49:05 AM: to: '/ipx/w:width,q:quality/:url’,
11:49:05 AM: status: 301
11:49:05 AM: },
11:49:05 AM: { from: ‘/_ipx/', to: ‘/.netlify/builders/_ipx’, status: 200 },
11:49:05 AM: { from: '/cache/’, to: ‘/404.html’, status: 404, force: true },
11:49:05 AM: { from: ‘/server/', to: ‘/404.html’, status: 404, force: true },
11:49:05 AM: { from: '/serverless/’, to: ‘/404.html’, status: 404, force: true },
11:49:05 AM: { from: ‘/traces’, to: ‘/404.html’, status: 404, force: true },
11:49:05 AM: {
11:49:05 AM: from: ‘/routes-manifest.json’,
11:49:05 AM: to: ‘/404.html’,
11:49:05 AM: status: 404,
11:49:05 AM: force: true
11:49:05 AM: },
11:49:05 AM: {
11:49:05 AM: from: ‘/build-manifest.json’,
11:49:05 AM: to: ‘/404.html’,
11:49:05 AM: status: 404,
11:49:05 AM: force: true
11:49:05 AM: },
11:49:05 AM: {
11:49:05 AM: from: ‘/prerender-manifest.json’,
11:49:05 AM: to: ‘/404.html’,
11:49:05 AM: status: 404,
11:49:05 AM: force: true
11:49:05 AM: },
11:49:05 AM: {
11:49:05 AM: from: ‘/react-loadable-manifest.json’,
11:49:05 AM: to: ‘/404.html’,
11:49:05 AM: status: 404,
11:49:05 AM: force: true
11:49:05 AM: },
11:49:05 AM: { from: ‘/BUILD_ID’, to: ‘/404.html’, status: 404, force: true },
11:49:05 AM: { from: ‘/_next/static/', to: ‘/static/:splat’, status: 200 },
11:49:05 AM: {
11:49:05 AM: from: ‘/api’,
11:49:05 AM: to: ‘/.netlify/functions/___netlify-handler’,
11:49:05 AM: status: 200
11:49:05 AM: },
11:49:05 AM: {
11:49:05 AM: from: '/api/’,
11:49:05 AM: to: ‘/.netlify/functions/___netlify-handler’,
11:49:05 AM: status: 200
11:49:05 AM: },
11:49:05 AM: {
11:49:05 AM: from: ‘/',
11:49:05 AM: to: ‘/.netlify/functions/___netlify-handler’,
11:49:05 AM: status: 200,
11:49:05 AM: conditions: { Cookie: [Array] },
11:49:05 AM: force: true
11:49:05 AM: },
11:49:05 AM: {
11:49:05 AM: from: '/’,
11:49:05 AM: to: ‘/.netlify/functions/___netlify-handler’,
11:49:05 AM: status: 200
11:49:05 AM: }
11:49:05 AM: ].
11:49:05 AM:
11:49:05 AM: (@netlify/plugin-nextjs onBuild completed in 92ms)
11:49:05 AM:
11:49:05 AM: ────────────────────────────────────────────────────────────────
11:49:05 AM: 4. Functions bundling
11:49:05 AM: ────────────────────────────────────────────────────────────────
11:49:05 AM:
11:49:05 AM: Packaging Functions from .netlify/functions-internal directory:
11:49:05 AM: - ___netlify-handler/___netlify-handler.js
11:49:05 AM: - ___netlify-odb-handler/___netlify-odb-handler.js
11:49:05 AM: - _ipx/_ipx.js
11:49:05 AM:
11:50:11 AM:
11:50:11 AM: (Functions bundling completed in 1m 6s)
11:50:11 AM:
11:50:11 AM: ────────────────────────────────────────────────────────────────
11:50:11 AM: 5. @netlify/plugin-nextjs (onPostBuild event)
11:50:11 AM: ────────────────────────────────────────────────────────────────
11:50:11 AM:
11:50:13 AM: Next.js cache saved.
11:50:13 AM:
11:50:13 AM: (@netlify/plugin-nextjs onPostBuild completed in 1.4s)
11:50:13 AM:
11:50:13 AM: ────────────────────────────────────────────────────────────────
11:50:13 AM: 6. Deploy site
11:50:13 AM: ────────────────────────────────────────────────────────────────
11:50:13 AM:
11:50:13 AM: Starting to deploy site from ‘.next’
11:50:13 AM: Creating deploy tree
11:50:13 AM: Creating deploy upload records
11:50:14 AM: 71 new files to upload
11:50:14 AM: 2 new functions to upload
11:50:19 AM: Starting post processing
11:50:19 AM: Post processing - HTML
11:50:21 AM: Post processing - header rules
11:50:21 AM: Post processing - redirect rules
11:50:21 AM: Post processing done
11:50:22 AM: Site is live
11:50:23 AM: Finished waiting for live deploy in 4.083803381s
11:50:23 AM: Site deploy was successfully initiated
11:50:23 AM:
11:50:23 AM: (Deploy site completed in 9.8s)
11:50:23 AM:
11:50:23 AM: ────────────────────────────────────────────────────────────────
11:50:23 AM: 7. @netlify/plugin-nextjs (onEnd event)
11:50:23 AM: ────────────────────────────────────────────────────────────────
11:50:23 AM:
11:50:23 AM: Thank you for trying the Essential Next.js beta plugin.
11:50:23 AM: Please share feedback (both good and bad) at Issues · netlify/next-runtime · GitHub
11:50:23 AM:
11:50:23 AM: (@netlify/plugin-nextjs onEnd completed in 8ms)
11:50:23 AM:
11:50:23 AM: A “_redirects” file is present in the repository but is missing in the publish directory “.next”.
11:50:23 AM:
11:50:23 AM: ────────────────────────────────────────────────────────────────
11:50:23 AM: Netlify Build Complete
11:50:23 AM: ────────────────────────────────────────────────────────────────
11:50:23 AM:
11:50:23 AM: (Netlify Build completed in 2m 48.3s)
11:50:23 AM: Caching artifacts
11:50:23 AM: Started saving node modules
11:50:23 AM: Finished saving node modules
11:50:23 AM: Started saving build plugins
11:50:23 AM: Finished saving build plugins
11:50:23 AM: Started saving pip cache
11:50:23 AM: Finished saving pip cache
11:50:23 AM: Started saving emacs cask dependencies
11:50:23 AM: Finished saving emacs cask dependencies
11:50:23 AM: Started saving maven dependencies
11:50:23 AM: Finished saving maven dependencies
11:50:23 AM: Started saving boot dependencies
11:50:23 AM: Finished saving boot dependencies
11:50:23 AM: Started saving rust rustup cache
11:50:23 AM: Finished saving rust rustup cache
11:50:23 AM: Started saving go dependencies
11:50:23 AM: Finished saving go dependencies
11:50:25 AM: Build script success
11:51:41 AM: Finished processing build request in 6m54.681430709s
here is the new build log
Could you try to deploy this as a different website?
I’m saying so because I can see something weird happen:
The redirect that should affect that path is supposed to be handled by a function named: ___netlify-handler
. The deploy log says it was published. Yet, I don’t see it in functions tab.
hi @hrishikesh
I have deleted the old site and then deploy it as a fresh new site but the error still the same Here is the deploy log
7:15:38 PM: Build ready to start
7:15:40 PM: build-image version: 8925038cf853b22d6397cdcb9904ac88b66bb383 (focal)
7:15:40 PM: build-image tag: v4.5.0
7:15:40 PM: buildbot version: 20cb4ef85b6f61b6606eb6b440f5b25079cc1aae
7:15:40 PM: Fetching cached dependencies
7:15:41 PM: Failed to fetch cache, continuing with build
7:15:41 PM: Starting to prepare the repo for build
7:15:41 PM: No cached dependencies found. Cloning fresh repo
7:15:41 PM: git clone https://github.com/salimsa7/Burrra
7:16:11 PM: Preparing Git Reference refs/heads/main
7:16:13 PM: Parsing package.json dependencies
7:16:14 PM: Starting build script
7:16:14 PM: Installing dependencies
7:16:14 PM: Python version set to 2.7
7:16:14 PM: v16.13.0 is already installed.
7:16:15 PM: Now using node v16.13.0 (npm v8.1.0)
7:16:15 PM: Started restoring cached build plugins
7:16:15 PM: Finished restoring cached build plugins
7:16:15 PM: Attempting ruby version 2.7.2, read from environment
7:16:16 PM: Using ruby version 2.7.2
7:16:17 PM: Using PHP version 8.0
7:16:17 PM: Started restoring cached node modules
7:16:20 PM: Finished restoring cached node modules
7:16:20 PM: Installing NPM modules using NPM version 8.1.0
7:16:23 PM: npm WARN old lockfile
7:16:23 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
7:16:23 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
7:16:23 PM: npm WARN old lockfile
7:16:23 PM: npm WARN old lockfile This is a one-time fix-up, please be patient…
7:16:23 PM: npm WARN old lockfile
7:16:42 PM: npm WARN EBADENGINE Unsupported engine {
7:16:42 PM: npm WARN EBADENGINE package: ‘react-lottie@1.2.3’,
7:16:42 PM: npm WARN EBADENGINE required: { npm: ‘^3.0.0’ },
7:16:42 PM: npm WARN EBADENGINE current: { node: ‘v16.13.0’, npm: ‘8.1.0’ }
7:16:42 PM: npm WARN EBADENGINE }
7:17:03 PM: npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
7:17:03 PM: npm WARN deprecated urix@0.1.0: Please see GitHub - lydell/urix: [DEPRECATED] Makes Windows-style paths more unix and URI friendly.
7:17:03 PM: npm WARN deprecated har-validator@5.1.5: this library is no longer supported
7:17:04 PM: npm WARN deprecated resolve-url@0.2.1: GitHub - lydell/resolve-url: [DEPRECATED] Like Node.js’ `path.resolve`/`url.resolve` for the browser.
7:17:05 PM: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
7:17:06 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
7:17:07 PM: npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
7:17:09 PM: npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
7:17:09 PM: npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
7:17:11 PM: npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
7:17:12 PM: npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
7:17:13 PM: npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
7:17:15 PM: npm WARN deprecated eslint-loader@3.0.3: This loader has been deprecated. Please use eslint-webpack-plugin
7:17:17 PM: npm WARN deprecated html-webpack-plugin@4.0.0-beta.11: please switch to a stable version
7:17:19 PM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
7:17:19 PM: npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
7:17:21 PM: npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
7:17:21 PM: npm WARN deprecated @hapi/pinpoint@1.0.2: Moved to ‘npm install @sideway/pinpoint’
7:17:22 PM: npm WARN deprecated @hapi/formula@1.2.0: Moved to ‘npm install @sideway/formula’
7:17:22 PM: npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
7:17:22 PM: npm WARN deprecated @hapi/address@2.1.4: Moved to ‘npm install @sideway/address’
7:17:26 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:26 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:26 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:27 PM: npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
7:17:27 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:28 PM: npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
7:17:28 PM: npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
7:17:29 PM: npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:30 PM: npm WARN deprecated @hapi/joi@15.1.1: Switch to ‘npm install joi’
7:17:34 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:34 PM: npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:35 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
7:17:35 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:36 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:38 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:39 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:39 PM: npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (ReDos Vulnerability Regression Visibility Notice · Issue #797 · debug-js/debug · GitHub)
7:17:40 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
7:17:40 PM: npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
7:17:40 PM: npm WARN deprecated @hapi/joi@16.1.8: Switch to ‘npm install joi’
7:17:58 PM: npm WARN deprecated core-js@2.6.11: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
7:18:23 PM: added 2611 packages, and audited 2612 packages in 2m
7:18:23 PM: 158 packages are looking for funding
7:18:23 PM: run npm fund
for details
7:18:23 PM: 93 vulnerabilities (2 low, 64 moderate, 25 high, 2 critical)
7:18:23 PM: To address issues that do not require attention, run:
7:18:23 PM: npm audit fix
7:18:23 PM: To address all issues (including breaking changes), run:
7:18:23 PM: npm audit fix --force
7:18:23 PM: Run npm audit
for details.
7:18:23 PM: NPM modules installed
7:18:24 PM: Started restoring cached go cache
7:18:24 PM: Finished restoring cached go cache
7:18:24 PM: go version go1.16.5 linux/amd64
7:18:24 PM: go version go1.16.5 linux/amd64
7:18:24 PM: Installing missing commands
7:18:24 PM: Verify run directory
7:18:25 PM:
7:18:25 PM: ────────────────────────────────────────────────────────────────
7:18:25 PM: Netlify Build
7:18:25 PM: ────────────────────────────────────────────────────────────────
7:18:25 PM:
7:18:25 PM: ❯ Version
7:18:25 PM: @netlify/build 19.0.6
7:18:25 PM:
7:18:25 PM: ❯ Flags
7:18:25 PM: baseRelDir: true
7:18:25 PM: buildId: 61a4ee9af1d0701fd91c51b0
7:18:25 PM: deployId: 61a4ee9af1d0701fd91c51b2
7:18:25 PM:
7:18:25 PM: ❯ Current directory
7:18:25 PM: /opt/build/repo
7:18:25 PM:
7:18:25 PM: ❯ Config file
7:18:25 PM: No config file was defined: using default values.
7:18:25 PM:
7:18:25 PM: ❯ Context
7:18:25 PM: production
7:18:26 PM:
7:18:26 PM: ❯ Installing plugins
7:18:26 PM: - @netlify/plugin-nextjs@3.9.2
7:18:35 PM:
7:18:35 PM: ❯ Loading plugins
7:18:35 PM: - @netlify/plugin-nextjs@3.9.2 from Netlify app
7:18:35 PM:
7:18:35 PM: ────────────────────────────────────────────────────────────────
7:18:35 PM: 1. @netlify/plugin-nextjs (onPreBuild event)
7:18:35 PM: ────────────────────────────────────────────────────────────────
7:18:35 PM:
7:18:35 PM: Using Next.js 12.0.4
7:18:35 PM: Warning: support for Next.js >=11.1.0 is experimental
7:18:37 PM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
7:18:37 PM: The “target” config property must be one of “serverless”, “experimental-serverless-trace”. Building with “serverless” target.
7:18:37 PM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
7:18:37 PM: No Next.js cache to restore.
7:18:37 PM:
7:18:37 PM: (@netlify/plugin-nextjs onPreBuild completed in 2.1s)
7:18:37 PM:
7:18:37 PM: ────────────────────────────────────────────────────────────────
7:18:37 PM: 2. Build command from Netlify app
7:18:37 PM: ────────────────────────────────────────────────────────────────
7:18:37 PM:
7:18:37 PM: $ npm run build
7:18:38 PM: > burrra@0.0.1 build
7:18:38 PM: > next build
7:18:40 PM: warn - SWC minify beta enabled. swc-minify-enabled | Next.js
7:18:40 PM: info - Checking validity of types…
7:18:40 PM: info - Creating an optimized production build…
7:18:41 PM: > [PWA] Compile client (static)
7:18:41 PM: > [PWA] Auto register service worker with: /opt/build/repo/node_modules/next-pwa/register.js
7:18:41 PM: > [PWA] Service worker: /opt/build/repo/public/sw.js
7:18:41 PM: > [PWA] url: /sw.js
7:18:41 PM: > [PWA] scope: /
7:18:41 PM: > [PWA] Fallback to precache routes when fetch failed from cache or network:
7:18:41 PM: > [PWA] document (page): /_offline
7:18:41 PM: > [PWA] image: /logogray.svg
7:18:41 PM: > [PWA] Inject manifest in /opt/build/repo/service-worker.js
7:18:41 PM: > [PWA] Compile server
7:19:36 PM: warn - Compiled with warnings
7:19:36 PM: /_next/static/chunks/pages/_app-bedd786dee5dc990.js is 2.35 MB, and won’t be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
7:19:36 PM: info - Collecting page data…
7:19:45 PM: info - Generating static pages (0/37)
7:19:45 PM: info - Generating static pages (9/37)
7:19:45 PM: info - Generating static pages (18/37)
7:19:45 PM: info - Generating static pages (27/37)
7:19:45 PM: info - Generating static pages (37/37)
7:19:46 PM: info - Finalizing page optimization…
7:19:46 PM: Page Size First Load JS
7:19:46 PM: ┌ ○ / (693 ms) 1.61 kB 727 kB
7:19:46 PM: ├ /_app 0 B 726 kB
7:19:46 PM: ├ ○ /_offline (396 ms) 322 B 732 kB
7:19:46 PM: ├ λ /[user] 1.51 kB 737 kB
7:19:46 PM: ├ ○ /[user]/disliked 1.52 kB 737 kB
7:19:46 PM: ├ ○ /[user]/disliked/list 1.53 kB 737 kB
7:19:46 PM: ├ ○ /[user]/follower 636 B 729 kB
7:19:46 PM: ├ ○ /[user]/following 637 B 729 kB
7:19:46 PM: ├ ○ /[user]/liked 1.51 kB 737 kB
7:19:46 PM: ├ ○ /[user]/liked/list 1.51 kB 737 kB
7:19:46 PM: ├ ○ /[user]/list 1.5 kB 737 kB
7:19:46 PM: ├ ○ /[user]/saved 1.51 kB 737 kB
7:19:46 PM: ├ ○ /[user]/saved/list 1.51 kB 737 kB
7:19:46 PM: ├ ○ /[user]/tagged 1.53 kB 737 kB
7:19:46 PM: ├ ○ /[user]/tagged/list 1.53 kB 737 kB
7:19:46 PM: ├ ○ /404 5.26 kB 731 kB
7:19:46 PM: ├ ○ /500 641 B 726 kB
7:19:46 PM: ├ ○ /comments/[cmntid] 3.06 kB 732 kB
7:19:46 PM: ├ ○ /compose/thought 191 B 726 kB
7:19:46 PM: ├ ○ /disclaimer 2.13 kB 728 kB
7:19:46 PM: ├ ○ /dmca 1.56 kB 727 kB
7:19:46 PM: ├ ○ /fallback 326 B 732 kB
7:19:46 PM: ├ λ /feed/[feedid] 188 B 726 kB
7:19:46 PM: ├ ○ /forgot 2.52 kB 732 kB
7:19:46 PM: ├ ○ /grid (323 ms) 505 B 726 kB
7:19:46 PM: ├ ○ /hash/[hash] 649 B 726 kB
7:19:46 PM: ├ ○ /hash/[hash]/list 654 B 726 kB
7:19:46 PM: ├ ○ /imageview/[imageview]/[altdata] 199 B 726 kB
7:19:46 PM: ├ ○ /login 9.02 kB 739 kB
7:19:46 PM: ├ ○ /notification 708 B 729 kB
7:19:46 PM: ├ ○ /privacy (413 ms) 2.77 kB 728 kB
7:19:46 PM: ├ ○ /recent 651 B 729 kB
7:19:46 PM: ├ ○ /report 560 B 726 kB
7:19:46 PM: ├ ○ /search 2.67 kB 745 kB
7:19:46 PM: ├ ○ /search/[q] 2.71 kB 745 kB
7:19:46 PM: ├ ○ /setting 8.44 kB 773 kB
7:19:46 PM: ├ ○ /signup 7.65 kB 771 kB
7:19:46 PM: ├ ○ /terms 3.94 kB 730 kB
7:19:46 PM: ├ ○ /worldfeed 447 B 726 kB
7:19:46 PM: └ ○ /worldfeed/list 457 B 726 kB
7:19:46 PM: + First Load JS shared by all 726 kB
7:19:46 PM: ├ chunks/framework-7d65b1ea44a032c9.js 42.1 kB
7:19:46 PM: ├ chunks/main-9d687912fe4cfede.js 34.5 kB
7:19:46 PM: ├ chunks/pages/_app-bedd786dee5dc990.js 647 kB
7:19:46 PM: ├ chunks/webpack-1c04c8f9fd3225ea.js 1.92 kB
7:19:46 PM: └ css/b7a85e0b3ddb4987.css 3.79 kB
7:19:46 PM: λ (Lambda) server-side renders at runtime (uses getInitialProps or getServerSideProps)
7:19:46 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
7:19:46 PM:
7:19:46 PM: (build.command completed in 1m 8.3s)
7:19:46 PM:
7:19:46 PM: ────────────────────────────────────────────────────────────────
7:19:46 PM: 3. @netlify/plugin-nextjs (onBuild event)
7:19:46 PM: ────────────────────────────────────────────────────────────────
7:19:46 PM:
7:19:46 PM: Detected Next.js site. Copying files…
7:19:46 PM: ** Running Next on Netlify package **
7:19:46 PM: Next on Netlify
7:19:46 PM: Copying public folder to /opt/build/repo/out
7:19:46 PM: Copying static NextJS assets to /opt/build/repo/out
7:19:46 PM: Setting up API endpoints as Netlify Functions in /opt/build/repo/.netlify/functions-internal
7:19:46 PM: Setting up pages with getInitialProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
7:19:46 PM: Setting up pages with getServerSideProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
7:19:46 PM: Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo/out
7:19:46 PM: Setting up pages with getStaticProps and fallback: true as Netlify Functions in /opt/build/repo/.netlify/functions-internal
7:19:46 PM: Setting up pages with getStaticProps and revalidation interval as Netlify Functions in /opt/build/repo/.netlify/functions-internal
7:19:46 PM: Copying pre-rendered pages without props to /opt/build/repo/out
7:19:46 PM: Building 39 pages
7:19:46 PM: Setting up redirects
7:19:46 PM: Setting up headers
7:19:46 PM: Success! All done!
7:19:46 PM:
7:19:46 PM: (@netlify/plugin-nextjs onBuild completed in 177ms)
7:19:46 PM:
7:19:46 PM: ────────────────────────────────────────────────────────────────
7:19:46 PM: 4. Functions bundling
7:19:46 PM: ────────────────────────────────────────────────────────────────
7:19:46 PM:
7:19:46 PM: Packaging Functions from .netlify/functions-internal directory:
7:19:46 PM: - next_feed_feedid/next_feed_feedid.js
7:19:46 PM: - next_image/next_image.js
7:19:46 PM: - next_user/next_user.js
7:19:46 PM:
7:20:24 PM:
7:20:24 PM: (Functions bundling completed in 37.7s)
7:20:24 PM:
7:20:24 PM: ────────────────────────────────────────────────────────────────
7:20:24 PM: 5. @netlify/plugin-nextjs (onPostBuild event)
7:20:24 PM: ────────────────────────────────────────────────────────────────
7:20:24 PM:
7:20:24 PM: Next.js cache saved.
7:20:24 PM:
7:20:24 PM: For faster deploy times, build IDs should be set to a static value.
7:20:24 PM: To do this, set generateBuildId: () => ‘build’ in your next.config.js
7:20:24 PM:
7:20:24 PM: (@netlify/plugin-nextjs onPostBuild completed in 709ms)
7:20:24 PM:
7:20:24 PM: ────────────────────────────────────────────────────────────────
7:20:24 PM: 6. Deploy site
7:20:24 PM: ────────────────────────────────────────────────────────────────
7:20:24 PM:
7:20:24 PM: Starting to deploy site from ‘out’
7:20:25 PM: Creating deploy tree
7:20:25 PM: Creating deploy upload records
7:20:25 PM: 39 new files to upload
7:20:25 PM: 3 new functions to upload
7:20:31 PM: Site deploy was successfully initiated
7:20:31 PM:
7:20:31 PM: (Deploy site completed in 6.4s)
7:20:31 PM:
7:20:31 PM: ────────────────────────────────────────────────────────────────
7:20:31 PM: Netlify Build Complete
7:20:31 PM: ────────────────────────────────────────────────────────────────
7:20:31 PM:
7:20:31 PM: (Netlify Build completed in 2m 5.6s)
7:20:31 PM: Starting post processing
7:20:31 PM: Post processing - HTML
7:20:31 PM: Caching artifacts
7:20:31 PM: Started saving node modules
7:20:31 PM: Finished saving node modules
7:20:31 PM: Started saving build plugins
7:20:31 PM: Finished saving build plugins
7:20:31 PM: Started saving pip cache
7:20:31 PM: Finished saving pip cache
7:20:31 PM: Started saving emacs cask dependencies
7:20:32 PM: Finished saving emacs cask dependencies
7:20:32 PM: Started saving maven dependencies
7:20:32 PM: Finished saving maven dependencies
7:20:32 PM: Started saving boot dependencies
7:20:32 PM: Finished saving boot dependencies
7:20:32 PM: Started saving rust rustup cache
7:20:32 PM: Finished saving rust rustup cache
7:20:32 PM: Started saving go dependencies
7:20:32 PM: Finished saving go dependencies
7:20:34 PM: Post processing - header rules
7:20:34 PM: Post processing - redirect rules
7:20:34 PM: Post processing done
7:20:34 PM: Build script success
7:20:34 PM: Site is live
7:21:49 PM: Finished processing build request in 6m8.975479688s
Link for your refrence https://61a4ee9af1d0701fd91c51b2--mystifying-mestorf-afc288.netlify.app/suzukihayabusa218930205
Weird. Well, at least this one shows an error.
Could you try setting Node 14 like mentioned here:
Thanks @hrishikesh @hillary
The issue has been resolved now after defining the environment variable for AWS Lambda
Thanks so much for coming back and letting us know! Glad everything is working for you now.