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

docs: add explicit createError import #6050

Merged
merged 2 commits into from
Jul 22, 2022
Merged

docs: add explicit createError import #6050

merged 2 commits into from
Jul 22, 2022

Conversation

mtskf
Copy link
Contributor

@mtskf mtskf commented Jul 21, 2022

❓ Type of change

  • [x ] πŸ“– Documentation (updates to the documentation or readme)

πŸ“š Description

createError should be imported from h3 otherwise Nuxt will throw an error:

[nuxt] [request error] createError is not defined

πŸ“ Checklist

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

`createError` should be imported from `h3`
@netlify
Copy link

netlify bot commented Jul 21, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 617ed4c
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62da54ebf2eba500085d88a3
😎 Deploy Preview https://deploy-preview-6050--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@danielroe
Copy link
Member

What version of Nuxt are you on?

@mtskf
Copy link
Contributor Author

mtskf commented Jul 22, 2022

@danielroe 3.0.0-rc.6

@danielroe
Copy link
Member

Try edge releases. It will be auto imported in the next release.

@pi0 pi0 changed the title Update create-error.md docs: add explicit createError import Jul 22, 2022
@danielroe danielroe closed this Jul 22, 2022
@pi0 pi0 reopened this Jul 22, 2022
@pi0
Copy link
Member

pi0 commented Jul 22, 2022

Thanks for the PR @mtskf. As @danielroe pointed out, the auto import feature for createError is merged with #4539 but still in the edge channel. I've moved your solution to a temporary banner until next release.

@pi0 pi0 merged commit 38158cf into nuxt:main Jul 22, 2022
@pi0 pi0 mentioned this pull request Aug 5, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants