nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
MIT License
424 stars 34 forks source link

defineHandler on Nuxt 3 RC12 #69

Closed g0shed closed 2 years ago

g0shed commented 2 years ago

RC12 breaks the module

when starting nuxt, this message shows:

import { eventHandler, setHeaders, sendRedirect, defineEventHandler, handleCacheHeaders, createEvent, getRequestHeader, defineHandler, createApp, createRouter as createRouter$1, lazyEventHandler, toNodeListener, readBody, sendError, createError, getQuery, writeEarlyHints } from 'node_modules/h3/dist/index.mjs'; ^^^^^^^^^^^^^ SyntaxError: The requested module 'node_modules/h3/dist/index.mjs' does not provide an export named 'defineHandler'

this is due to the breaking changes in H3 and Nuxt

tschortsch commented 2 years ago

@ricardogobbosouza would it be possible to create a new release with this bugfix so that we can upgrade our setup to Nuxt RC12?

ricardogobbosouza commented 2 years ago

Released v3.0.0-2