Skip to content

Unable to read property of undefined (reading 'startsWith') #240

Closed
@olliescase

Description

@olliescase

🐛 The bug

When upgrading the package from:
v0.7.1 -> v0.8.0

We encountered the following issue:

Error in the console:

[nuxt] error caught during app initialization TypeError: Cannot read properties of undefined (reading 'startsWith')

From source:

 ss(n.vueApp.config.globalProperties, "$nuxt", n);
    {
        window.addEventListener("nuxt.preloadError", s => {
            n.callHook("app:chunkError", {
                error: s.payload
            })
        }
        ),
        window.useNuxtApp = window.useNuxtApp || le;
        const i = n.hook("app:error", (...s) => {
            console.error("[nuxt] error caught during app initialization", ...s)
        }
        );
        n.hook("app:mounted", i)
    }
    const r = n.payload.config;
    return n.provide("config", r),
    n
}

🛠️ To reproduce

/

🌈 Expected behavior

No error

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions