Static GitHub Issues

[2564] Possible error in /lib/app/components/nuxt.js

prev: Does Nuxt fully support the latest Vue Functional Components?
next: Loader completes prematurely if middleware returns a redirect

https://github.com/nuxt/nuxt.js/blob/758c554ed7682114d2e68e49bd75cc8c97d5a07b/lib/app/components/nuxt.js#L3

At the very least, my linter doesn't like it.

I assume that the single-quotes (') should be escaped (\') or replaced by double-quotes (") at

(components.ErrorPage.indexOf('~') === 0 || components.ErrorPage.indexOf('@') === 0)

because the whole thing is inside a single-quoted string. Or maybe just

/^[~@]/.test(components.ErrorPage)

I think this may possibly have fixed https://github.com/nuxt-community/create-nuxt-app/issues/16 for me.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2231">#c2231</a>)</em></sub></div>