Home

Issue: 3109

how to run async-data example of nuxt.js

[issue link]

I want to run the example of async-data.
Change the directory to the async-data example.
But run the command npm run dev and have the error:

nuxt.js/examples/async-data/nuxt.config.js:1
(function (exports, require, module, __filename, __dirname) { export default {
                                                              ^^^^^^

SyntaxError: Unexpected token export

How can I run these examples of nuxt.js?

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