NuxtN
Nuxt5mo ago
31 replies
Zoidberg

rollup error module nuxt 4

Im trying to update my module (https://github.com/Pentadome/nuxt-openAPI-wrapper/tree/nuxt-4) to Nuxt 4. but after updating, whenever i build the playground, i get this rollup error:
 RollupError: playground/node_modules/.cache/nuxt/.nuxt/openapi-wrapper/index.ts (1:7): Expected '{', got 'type' (Note that you need plugins to import files that are not JavaScript)                                             nitro 17:39:20  


1: export type * from "C:/Users/username/repos/nuxt-open-api/nuxt-openapi-wrapper/src/runtime/fetchTypes";

Do i need to do something special to get typescript support for nuxt 4 modules?
GitHub
Generates a typesafe fetch client for Nuxt using Openapi-ts. - GitHub - Pentadome/nuxt-openAPI-wrapper at nuxt-4
GitHub - Pentadome/nuxt-openAPI-wrapper at nuxt-4
Was this page helpful?