Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(webpack): promisify webpack dev/hot handlers using h3.promisifyHandler #7275

Merged
merged 5 commits into from
Sep 7, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#14809

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Currently the first next() call from webpack devMiddleware short-circuits second next call from hotMiddleware meaning we currently get a 404 for webpack HMR endpoint.

I think it's a non-breaking change to update schema type for devMiddleware (as CompatibilityEvent should be backwards compatible).

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working webpack ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf labels Sep 6, 2022
@danielroe danielroe requested a review from pi0 September 6, 2022 10:50
@danielroe danielroe self-assigned this Sep 6, 2022
@netlify
Copy link

netlify bot commented Sep 6, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 8b6c435
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/631754d157cebb00095ed38d

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Good idea!

@pi0
Copy link
Member

pi0 commented Sep 6, 2022

I think we can now remove pify promisify if using h3 to do this.

@pi0 pi0 self-requested a review September 6, 2022 10:57
@pi0 pi0 changed the title fix(schema, webpack): promisify webpack dev/hot handlers fix(webpack): promisify webpack dev/hot handlers using h3.promisifyHandler Sep 7, 2022
@pi0 pi0 merged commit 2bb898f into main Sep 7, 2022
@pi0 pi0 deleted the fix/webpack-handlers branch September 7, 2022 08:35
This was referenced Sep 9, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf webpack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Vue Router warn]: No match found for location with path "/__webpack_hmr/client"
2 participants