Hi,
Having a few issues on deploy and build my website using gridsome
1- the deploy is successful however browsing the wenbite I get the Netlify 404 page.
11:55:10 AM: build-image version: c11c0eb9939c949586b0f78302107908b668a11e (focal)
11:55:10 AM: buildbot version: 7c805444e63405246c545edc7c88027cc22d5424
11:55:10 AM: Fetching cached dependencies
11:55:10 AM: Failed to fetch cache, continuing with build
11:55:10 AM: Starting to prepare the repo for build
11:55:11 AM: No cached dependencies found. Cloning fresh repo
11:55:11 AM: git clone --filter=blob:none git@gitlab.com:linkomwebcom/static/rodina-promotion
11:55:11 AM: Preparing Git Reference refs/heads/master
11:55:14 AM: Starting to install dependencies
11:55:14 AM: Python version set to 3.8
11:55:14 AM: Attempting Ruby version 2.7.2, read from environment
11:55:15 AM: Using Ruby version 2.7.2
11:55:15 AM: Started restoring cached go cache
11:55:15 AM: Finished restoring cached go cache
11:55:17 AM: go version go1.19.10 linux/amd64
11:55:17 AM: Using PHP version 8.0
11:55:18 AM: Downloading and installing node v18.16.1…
11:55:18 AM: Downloading https://nodejs.org/dist/v18.16.1/node-v18.16.1-linux-x64.tar.xz…
11:55:18 AM: Computing checksum with sha256sum
11:55:18 AM: Checksums matched!
11:55:20 AM: Now using node v18.16.1 (npm v9.5.1)
11:55:21 AM: Enabling Node.js Corepack
11:55:21 AM: Started restoring cached build plugins
11:55:21 AM: Finished restoring cached build plugins
11:55:21 AM: Started restoring cached corepack dependencies
11:55:21 AM: Finished restoring cached corepack dependencies
11:55:21 AM: Started restoring cached yarn cache
11:55:21 AM: Finished restoring cached yarn cache
11:55:21 AM: No yarn workspaces detected
11:55:21 AM: Started restoring cached node modules
11:55:21 AM: Finished restoring cached node modules
11:55:21 AM: Installing npm packages using Yarn version 1.22.19
11:55:22 AM: yarn install v1.22.19
11:55:22 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
11:55:22 AM: [1/4] Resolving packages…
11:55:22 AM: [2/4] Fetching packages…
11:55:24 AM: warning mini-css-extract-plugin@0.5.0: Invalid bin field for mini-css-extract-plugin.
11:55:24 AM: warning url-loader@1.1.2: Invalid bin field for url-loader.
11:55:36 AM: [3/4] Linking dependencies…
11:55:36 AM: warning > @tailwindcss/aspect-ratio@0.2.2 has unmet peer dependency tailwindcss@>=2.0.0 || >=3.0.0-alpha.1.
11:55:36 AM: warning > @tailwindcss/line-clamp@0.2.2 has unmet peer dependency tailwindcss@>=2.0.0 || >=3.0.0-alpha.1.
11:55:36 AM: warning > @tailwindcss/typography@0.4.0 has unmet peer dependency tailwindcss@2.0.0-alpha.24 || ^2.0.0.
11:55:36 AM: warning gridsome-plugin-tailwindcss > tailwindcss@2.0.3 has unmet peer dependency autoprefixer@^10.0.2.
11:55:36 AM: warning gridsome-plugin-tailwindcss > tailwindcss@2.0.3 has incorrect peer dependency postcss@^8.0.9.
11:55:36 AM: warning gridsome-plugin-tailwindcss > tailwindcss > postcss-nested@5.0.3 has incorrect peer dependency postcss@^8.1.13.
11:55:36 AM: warning netlify-cms > netlify-cms-media-library-cloudinary@1.3.9 has unmet peer dependency netlify-cms-lib-util@^2.1.3-beta.0.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-widget-list@2.8.2 has unmet peer dependency netlify-cms-lib-widgets@^1.0.0.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-widget-relation@2.8.8 has unmet peer dependency netlify-cms-lib-widgets@^1.0.0.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-widget-select@2.7.3 has unmet peer dependency netlify-cms-lib-widgets@^1.0.0.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-core > connected-react-router@6.8.0 has unmet peer dependency react-router@^4.3.1 || ^5.0.0.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-core > connected-react-router@6.8.0 has unmet peer dependency seamless-immutable@^7.1.3.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-widget-colorstring > validate-color@2.1.1 has incorrect peer dependency react@^17.0.1.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-widget-colorstring > validate-color@2.1.1 has incorrect peer dependency react-dom@^17.0.1.
11:55:36 AM: warning netlify-cms > netlify-cms-app > netlify-cms-core > redux-notifications > react-redux@4.4.10 has incorrect peer dependency redux@^2.0.0 || ^3.0.0.
11:55:36 AM: warning > eslint-plugin-vue@6.2.2 has incorrect peer dependency eslint@^5.0.0 || ^6.0.0.
11:55:36 AM: warning > sass-loader@7.3.1 has unmet peer dependency webpack@^3.0.0 || ^4.0.0.
11:55:43 AM: [4/4] Building fresh packages…
11:55:58 AM: Done in 36.44s.
11:55:58 AM: npm packages installed using Yarn
11:55:59 AM: Install dependencies script success
11:55:59 AM: No build steps found, continuing to publishingstrong text
2 - when i fill in build setting manually (Build command : gridsome build / Publish directory : dist), I get failed deploy
Netlify site name : https://dulcet-dodol-760da1.netlify.app
Build problems
11:58:41 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
11:58:37 AM: Netlify Build
11:58:37 AM: ────────────────────────────────────────────────────────────────
11:58:37 AM:
11:58:37 AM: ❯ Version
11:58:37 AM: @netlify/build 29.12.1
11:58:37 AM:
11:58:37 AM: ❯ Flags
11:58:37 AM: baseRelDir: true
11:58:37 AM: buildId: 64981dabdf9c3f7075a9429a
11:58:37 AM: deployId: 64981dabdf9c3f7075a9429c
11:58:37 AM: tracing:
11:58:37 AM: enabled: ‘false’
11:58:37 AM: host: 10.65.128.66
11:58:37 AM: parentSpanId: cbb80f71d3adbdc0
11:58:37 AM: traceFlags: ‘01’
11:58:37 AM: traceId: d959accbf3a519df0d2f2f6fc4397f6b
11:58:37 AM:
11:58:37 AM: ❯ Current directory
11:58:37 AM: /opt/build/repo
11:58:37 AM:
11:58:37 AM: ❯ Config file
11:58:37 AM: No config file was defined: using default values.
11:58:37 AM:
11:58:37 AM: ❯ Context
11:58:37 AM: production
11:58:37 AM:
11:58:37 AM: Build command from Netlify app
11:58:37 AM: ────────────────────────────────────────────────────────────────
11:58:37 AM:
11:58:37 AM: $ gridsome build
11:58:37 AM: Gridsome v0.7.23
11:58:37 AM: Initializing plugins…
11:58:37 AM: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./lib/node’ is not defined by exports in /opt/build/repo/node_modules/tailwindcss/node_modules/postcss/package.json
11:58:37 AM: at new NodeError (node:internal/errors:399:5)
11:58:37 AM: at exportsNotFound (node:internal/modules/esm/resolve:361:10)
11:58:37 AM: at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
11:58:37 AM: at resolveExports (node:internal/modules/cjs/loader:567:36)
11:58:37 AM: at Module._findPath (node:internal/modules/cjs/loader:636:31)
11:58:37 AM: at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
11:58:37 AM: at Module._load (node:internal/modules/cjs/loader:922:27)
11:58:37 AM: at Module.require (node:internal/modules/cjs/loader:1143:19)
11:58:37 AM: at require (node:internal/modules/cjs/helpers:110:18)
11:58:37 AM: at Object. (/opt/build/repo/node_modules/tailwindcss/lib/util/processPlugins.js:12:36)
11:58:37 AM: at Module._compile (node:internal/modules/cjs/loader:1256:14)
11:58:37 AM: at Module._extensions…js (node:internal/modules/cjs/loader:1310:10)
11:58:37 AM: at Module.load (node:internal/modules/cjs/loader:1119:32)
11:58:37 AM: at Module._load (node:internal/modules/cjs/loader:960:12)
11:58:37 AM: at Module.require (node:internal/modules/cjs/loader:1143:19)
11:58:37 AM: at require (node:internal/modules/cjs/helpers:110:18)
11:58:37 AM:
11:58:37 AM: build.command failed
11:58:37 AM: ────────────────────────────────────────────────────────────────
11:58:37 AM:
11:58:37 AM: Error message
11:58:37 AM: Command failed with exit code 1: gridsome build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
11:58:37 AM:
11:58:37 AM: Error location
11:58:37 AM: In Build command from Netlify app:
11:58:37 AM: gridsome build
11:58:37 AM:
11:58:37 AM: Resolved config
11:58:37 AM: build:
11:58:37 AM: command: gridsome build
11:58:37 AM: commandOrigin: ui
11:58:37 AM: publish: /opt/build/repo/dist
11:58:37 AM: publishOrigin: ui
11:58:41 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:58:41 AM: Failing build: Failed to build site
11:58:41 AM: Finished processing build request in 53.348s