Static GitHub Issues

[3109] how to run async-data example of nuxt.js

prev: Nuxt generate moves compiled css into <head>
next: [Enhancement] Support extractCss in webpack 4

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?

<!--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/c2693">#c2693</a>)</em></sub></div>