You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using nuxt-edge with nuxt-bridge but without using nitro, the compiler is unable to resolve TypeScript files that get loaded into the Vue components.
It's been quite a while since I've dealt with this issue but if I remembered correctly, the main problem here is that we tried using Nuxt Bridge without Nitro and the nuxi CLI.
The nuxi CLI does not have support for the modern flag and neither does Nuxt 3.
In the end this was a problem for us because we were in a sort of limbo state between Nuxt 2 and Nuxt 3, using Nuxt Bridge but not using Nitro.
In the end we migrated to Nitro and using the nuxi CLI, which didn't have the flag to begin with, making the issue moot.
Versions
Introduction
When using nuxt-edge with nuxt-bridge but without using nitro, the compiler is unable to resolve TypeScript files that get loaded into the Vue components.
Reproduction
A reproduction repository is available here: https://github.com/Physer/nuxt-bridge-disabled-modern-build-issue.
Including a detailed readme with version overview.
Additional Details
This repository shows an issue with the --modern flag for the Nuxt CLI.
When using Nuxt Bridge (nuxt-edge and nuxt-bridge) but Nitro is disabled as a build tool, the --modern flag is unable to resolve a Typescript import.
Steps to reproduce
nuxt-edge
andnuxt-bridge
nuxt
CLI (not `nuxi)--modern
flag to the build command (i.e.nuxt build --modern=server
defineNuxtConfig
as according to the documentationnitro
build system in your Nuxt config:What is Expected?
It's expected to build the application properly without any errors and allowing modern browsers to use less JavaScript.
What is actually happening?
Actually the application is not able to built because it can't resolve a TypeScript file. Resulting in a compilation error.
The text was updated successfully, but these errors were encountered: