There is a problem with deploying Nuxt 3 using Nuxt Dayjs plugin

Hello! I have a problem during building my app. The build is falling down because of library Nuxt Dayjs with this configuration:
image
There is no problem when I build application locally, but Netlify couldn’t complete the building saying this:

Rollup failed to resolve import “dayjs/plugin/CustomParseFormat” from “/opt/build/repo/.nuxt/dayjs.imports.mjs”.

11:34:39 AM: This is most likely unintended because it can break your application at runtime.

11:34:39 AM: If you do want to externalize this module explicitly add it to

11:34:39 AM: build.rollupOptions.external

Site name: https://vegan-shopper.netlify.app

Full logs:

11:34:01 AM: build-image version: 50f2c07b4ff67fac131b5b345ef7efb7e0ab9dac (focal)
11:34:01 AM: buildbot version: fe683c97f75320e742ebd656b4a09fe02e4c909a
11:34:01 AM: Building without cache
11:34:01 AM: Starting to prepare the repo for build
11:34:01 AM: No cached dependencies found. Cloning fresh repo
11:34:01 AM: git clone --filter=blob:none https://github.com/lefhl/buys-frontend
11:34:02 AM: Preparing Git Reference refs/heads/master
11:34:04 AM: Starting to install dependencies
11:34:04 AM: Python version set to 3.8
11:34:04 AM: Attempting Ruby version 2.7.2, read from environment
11:34:05 AM: Using Ruby version 2.7.2
11:34:05 AM: Started restoring cached go cache
11:34:05 AM: Finished restoring cached go cache
11:34:06 AM: go version go1.19.13 linux/amd64
11:34:07 AM: Using PHP version 8.0
11:34:08 AM: v18.18.2 is already installed.
11:34:08 AM: Now using node v18.18.2 (npm v9.8.1)
11:34:08 AM: Enabling Node.js Corepack
11:34:08 AM: Started restoring cached build plugins
11:34:08 AM: Finished restoring cached build plugins
11:34:08 AM: Started restoring cached corepack dependencies
11:34:08 AM: Finished restoring cached corepack dependencies
11:34:08 AM: No npm workspaces detected
11:34:08 AM: Started restoring cached node modules
11:34:08 AM: Finished restoring cached node modules
11:34:09 AM: Installing npm packages using npm version 9.8.1
11:34:19 AM: > postinstall
11:34:19 AM: > nuxt prepare
11:34:21 AM: [warn] You seem to be using yup, but you have not installed @vee-validate/yup. Please install it to use yup with vee-validate.
11:34:21 AM: [success] Types generated in .nuxt
11:34:21 AM: > prepare
11:34:21 AM: > husky install
11:34:21 AM: husky - Git hooks installed
11:34:21 AM: added 1217 packages, and audited 1219 packages in 12s
11:34:21 AM: 274 packages are looking for funding
11:34:21 AM: run npm fund for details
11:34:21 AM: 3 moderate severity vulnerabilities
11:34:21 AM: To address all issues (including breaking changes), run:
11:34:21 AM: npm audit fix --force
11:34:21 AM: Run npm audit for details.
11:34:21 AM: npm packages installed
11:34:22 AM: Successfully installed dependencies
11:34:22 AM: Starting build script
11:34:22 AM: Detected 1 framework(s)
11:34:22 AM: “nuxt” at version “3.8.1”
11:34:22 AM: Section completed: initializing
11:34:24 AM: ​
11:34:24 AM: Netlify Build
11:34:24 AM: ────────────────────────────────────────────────────────────────
11:34:24 AM: ​
11:34:24 AM: ❯ Version
11:34:24 AM: @netlify/build 29.26.2
11:34:24 AM: ​
11:34:24 AM: ❯ Flags
11:34:24 AM: baseRelDir: true
11:34:24 AM: buildId: 654deaecdad2214f87d90c63
11:34:24 AM: deployId: 654deaecdad2214f87d90c65
11:34:24 AM: ​
11:34:24 AM: ❯ Current directory
11:34:24 AM: /opt/build/repo
11:34:24 AM: ​
11:34:24 AM: ❯ Config file
11:34:24 AM: No config file was defined: using default values.
11:34:24 AM: ​
11:34:24 AM: ❯ Context
11:34:24 AM: production
11:34:24 AM: ​
11:34:24 AM: ❯ Installing plugins
11:34:24 AM: - @netlify/plugin-lighthouse@5.0.0
11:34:34 AM: ​
11:34:34 AM: ❯ Loading plugins
11:34:34 AM: - @netlify/plugin-lighthouse@5.0.0 from Netlify app
11:34:35 AM: ​
11:34:35 AM: Build command from Netlify app
11:34:35 AM: ────────────────────────────────────────────────────────────────
11:34:35 AM: ​
11:34:35 AM: $ npm run generate
11:34:36 AM: > generate
11:34:36 AM: > nuxt generate
11:34:36 AM: [log] Nuxt 3.8.1 with Nitro 2.7.2
11:34:37 AM: [warn] You seem to be using yup, but you have not installed @vee-validate/yup. Please install it to use yup with vee-validate.
11:34:38 AM: [info] Building client…
11:34:38 AM: [info] vite v4.5.0 building for production…
11:34:38 AM: [info] transforming…
11:34:39 AM: Failed during stage “building site”: Build script returned non-zero exit code: 2
11:34:39 AM: [info] ✓ 75 modules transformed.
11:34:39 AM: [info] ✓ built in 1.03s
11:34:39 AM: [error] [vite]: Rollup failed to resolve import “dayjs/plugin/CustomParseFormat” from “/opt/build/repo/.nuxt/dayjs.imports.mjs”.
11:34:39 AM: This is most likely unintended because it can break your application at runtime.
11:34:39 AM: If you do want to externalize this module explicitly add it to
11:34:39 AM: build.rollupOptions.external
11:34:39 AM: [error] Nuxt Build Error: [vite]: Rollup failed to resolve import “dayjs/plugin/CustomParseFormat” from “/opt/build/repo/.nuxt/dayjs.imports.mjs”.
11:34:39 AM: This is most likely unintended because it can break your application at runtime.
11:34:39 AM: If you do want to externalize this module explicitly add it to
11:34:39 AM: build.rollupOptions.external
11:34:39 AM: This is most likely unintended because it can break your application at runtime.
11:34:39 AM: If you do want to externalize this module explicitly add it to
11:34:39 AM: build.rollupOptions.external
11:34:39 AM: at viteWarn (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:48216:27)
11:34:39 AM: at onRollupWarning (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:48248:9)
11:34:39 AM: at onwarn (node_modules/vite/dist/node/chunks/dep-bb8a8339.js:47976:13)
11:34:39 AM: at node_modules/rollup/dist/es/shared/node-entry.js:24276:13
11:34:39 AM: at Object.logger [as onLog] (node_modules/rollup/dist/es/shared/node-entry.js:25950:9)
11:34:39 AM: at ModuleLoader.handleInvalidResolvedId (node_modules/rollup/dist/es/shared/node-entry.js:24862:26)
11:34:39 AM: at node_modules/rollup/dist/es/shared/node-entry.js:24822:26
11:34:39 AM: ​
11:34:39 AM: “build.command” failed
11:34:39 AM: ────────────────────────────────────────────────────────────────
11:34:39 AM: ​
11:34:39 AM: Error message
11:34:39 AM: Command failed with exit code 1: npm run generate (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
11:34:39 AM: ​
11:34:39 AM: Error location
11:34:39 AM: In Build command from Netlify app:
11:34:39 AM: npm run generate
11:34:39 AM: ​
11:34:39 AM: Resolved config
11:34:39 AM: build:
11:34:39 AM: command: npm run generate
11:34:39 AM: commandOrigin: ui
11:34:39 AM: publish: /opt/build/repo/dist
11:34:39 AM: publishOrigin: ui
11:34:39 AM: plugins:
11:34:39 AM: - inputs: {}
11:34:39 AM: origin: ui
11:34:39 AM: package: “@netlify/plugin-lighthouse”
11:34:39 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:34:39 AM: Failing build: Failed to build site
11:34:40 AM: Finished processing build request in 38.594s

Thank you a lot! It really helped, when I changed CustomParseFormat to customParseFormat