Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
olliescase opened this issue Sep 3, 2024 · 1 comment
Closed

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

olliescase opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@olliescase
Copy link

🐛 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

@olliescase olliescase added the bug Something isn't working label Sep 3, 2024
@harlan-zw
Copy link
Collaborator

Hi, thanks for the issue. It's not exactly clear where the issue is from, ideally a reproduction would be provided so I could verify.

However, I have pushed up a fix for a possible issue where a script is registered without a src.

If you still have issues with 0.8.1 please provide a reproduction 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants