Home

Issue: 2564

Possible error in /lib/app/components/nuxt.js

[issue link]

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.

This question is available on Nuxt.js community (#c2231)