JulianMar / nuxt-bugsnag

Bugsnag module for nuxt.js
MIT License
49 stars 18 forks source link

Vercel Deployment with Source Maps enabled errors out with "No Output Directory named "dist" found after the Build completed" #40

Closed zkschmitz closed 1 year ago

zkschmitz commented 1 year ago

After trying to deploy to Vercel with the Source Maps enabled, I get the following error: Error: No Output Directory named "dist" found after the Build completed. You can configure the Output Directory in your Project Settings.

This only happens when I try and use the "publishRelease" and "baseURL" to upload source maps. If I remove these items, it deployed fine. Everything builds fine, it uploads the source maps to bug snag, but then errors out.

Nuxt version: 3.1.2 Bugsnag Module Version: 5.9

nuxt.config.ts

bugsnag: {
        publishRelease: true,
        baseUrl: <URL>,
        config: {
            apiKey: <KEY>,
            enabledReleaseStages: ["staging", "production"],
            releaseStage: process.env.NODE_ENV,
            appVersion: "1.1",
        },
    },

Any ideas as to why this might happen?

JulianMar commented 1 year ago

Hey, can you try the new version? 5.9.1

zkschmitz commented 1 year ago

@JulianMar - works like a charm! Thanks for the quick fix