Home

Issue: 2395

node 6 - nuxt@next - build fails with SyntaxError: Unexpected token function

[issue link]

Since the last nuxt@next (1.0.0-gh-3ec8f14), I’m not able to build nuxt anymore with Node Version 6. I saw a commit regarding node 8, so is node 6 officialy not longer supported? Not even for the build process?

# nuxt build --universal && backpack build
output /source/node_modules/nuxt/lib/common/utils.js:25
output exports.waitFor = async function waitFor(ms) {
output ^^^^^^^^
output SyntaxError: Unexpected token function
output - module.js:20 require
output internal/module.js:20:19
output - index.js:1 Object.<anonymous>
output [source]/[nuxt]/lib/common/index.js:1:77

Thanks
Simon

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