Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build issue #17

Closed
wants to merge 1 commit into from
Closed

Fix build issue #17

wants to merge 1 commit into from

Conversation

romanzy313
Copy link

Build did not work on latest version of "create astro".

  "dependencies": {
    "astro": "^2.0.2"
  },
  "devDependencies": {
    "@matthewp/astro-fastify": "^2.0.3"
  }

Here is the change that broke build.

Build did not work on latest version of "create astro".

```
  "dependencies": {
    "astro": "^2.0.2"
  },
  "devDependencies": {
    "@matthewp/astro-fastify": "^2.0.3"
  }
```

Issue origin: withastro/astro#5056
@@ -117,7 +117,7 @@ export default function(options) {
}
}
},
'astro:build:start'({ buildConfig }) {
'config.build'({ buildConfig }) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a real hook, what made you think to do this change?

Copy link
Author

@romanzy313 romanzy313 Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the link I attached in original PR.

    The deprecation of the buildConfig option in astro:build:start in favor of moving those same options to config.build.

It wont build using latest stable Astro version

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. That is saying that the build is on the config.build object, not the config.build hook. I'll submit another PR to fix.

@matthewp
Copy link
Owner

matthewp commented Feb 2, 2023

Published 2.1.1 which fixes this issue.

@matthewp matthewp closed this Feb 2, 2023
@romanzy313 romanzy313 deleted the patch-1 branch February 2, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants