You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I created the template with npm create astro@latest -- --template onwidget/astrowind and added netlify to it: npx astro add netlify and I get the following build errors:
4:36:46 PM: Netlify Build
4:36:46 PM: ────────────────────────────────────────────────────────────────
4:36:46 PM:
4:36:46 PM: ❯ Version
4:36:46 PM: @netlify/build 29.36.0
4:36:46 PM:
4:36:46 PM: ❯ Flags
4:36:46 PM: baseRelDir: true
4:36:46 PM: buildId: 65d8c95e24fc2a25e8409821
4:36:46 PM: deployId: 65d8c95e24fc2a25e8409823
4:36:46 PM:
4:36:46 PM: ❯ Current directory
4:36:46 PM: /opt/build/repo
4:36:46 PM:
4:36:46 PM: ❯ Config file
4:36:46 PM: /opt/build/repo/netlify.toml
4:36:46 PM:
4:36:46 PM: ❯ Context
4:36:46 PM: production
4:36:46 PM:
4:36:46 PM: build.command from netlify.toml
4:36:46 PM: ────────────────────────────────────────────────────────────────
4:36:46 PM:
4:36:46 PM: $ npm run build
4:36:46 PM: > [email protected] build
4:36:46 PM: > astro check && astro build
4:36:49 PM: 16:36:49 Types generated 265ms
4:36:49 PM: 16:36:49 [check] Getting diagnostics for Astro files in /opt/build/repo...
4:36:54 PM: src/utils/config.ts:2:18 - error ts(7016): Could not find a declaration file for module "js-yaml". "/opt/build/repo/node_modules/js-yaml/dist/js-yaml.mjs" implicitly has an "any" type.
4:36:54 PM: Try `npm i --save-dev @types/js-yaml` if it exists or add a new declaration (.d.ts) file containing `declare module "js-yaml";`
4:36:54 PM: 2 import yaml from "js-yaml";
4:36:54 PM: ~~~~~~~~~
4:36:54 PM: src/utils/images.ts:84:64 - error ts(2339): Property "height" does not exist on type "GetImageResult".
4:36:54 PM: 84 height: typeof _image.height === "number" ? _image.height : undefined,
4:36:54 PM: ~~~~~~
4:36:54 PM: src/utils/images.ts:84:35 - error ts(2339): Property "height" does not exist on type "GetImageResult".
4:36:54 PM: 84 height: typeof _image.height === "number" ? _image.height : undefined,
4:36:54 PM: ~~~~~~
4:36:54 PM: src/utils/images.ts:83:62 - error ts(2339): Property "width" does not exist on type "GetImageResult".
4:36:54 PM: 83 width: typeof _image.width === "number" ? _image.width : undefined,
4:36:54 PM: ~~~~~
4:36:54 PM: src/utils/images.ts:83:34 - error ts(2339): Property "width" does not exist on type "GetImageResult".
4:36:54 PM: 83 width: typeof _image.width === "number" ? _image.width : undefined,
4:36:54 PM: ~~~~~
4:36:54 PM: Result (95 files):
4:36:54 PM: - 5 errors
4:36:54 PM: - 0 warnings
4:36:54 PM: - 0 hints
4:36:54 PM:
4:36:54 PM:
4:36:54 PM: "build.command" failed
4:36:54 PM: ────────────────────────────────────────────────────────────────
4:36:54 PM:
4:36:54 PM: Error message
4:36:54 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
4:36:54 PM:
4:36:54 PM: Error location
4:36:54 PM: In build.command from netlify.toml:
4:36:54 PM: npm run build
4:36:54 PM:
4:36:54 PM: Resolved config
4:36:54 PM: build:
4:36:54 PM: command: npm run build
4:36:54 PM: commandOrigin: config
4:36:54 PM: processing:
4:36:54 PM: html:
4:36:54 PM: pretty_urls: false
4:36:54 PM: publish: /opt/build/repo/dist
4:36:54 PM: publishOrigin: config
4:36:54 PM: headers:
4:36:55 PM: - for: /assets/*
values:
Cache-Control: public, max-age=31536000, immutable
headersOrigin: config
4:36:55 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:36:55 PM: Failing build: Failed to build site
4:36:55 PM: Finished processing build request in 48.921s
4:36:55 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
The text was updated successfully, but these errors were encountered:
Hey, I created the template with
npm create astro@latest -- --template onwidget/astrowind
and added netlify to it:npx astro add netlify
and I get the following build errors:The text was updated successfully, but these errors were encountered: