nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.49k stars 429 forks source link

create-nuxt-app:Unexpected identifier after npm run dev #248

Open mhalsubhi opened 5 years ago

mhalsubhi commented 5 years ago

After I create new nuxt project using npx create-nuxt-app then starting dev server npm run dev I get this error

SyntaxError
Unexpected identifier

Screenshots: image

image

image

mhalsubhi commented 5 years ago
OS: Windows 10 pro. 
npm version: 6.9.0.
browser: Chrome 74.0.3729.169.

here is nuxt.config.js

import pkg from './package'

export default {
  mode: 'universal',

  /*
  ** Headers of the page
  */
  head: {
    title: pkg.name,
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: pkg.description }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },

  /*
  ** Global CSS
  */
  css: [
  ],

  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
  ],

  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://bootstrap-vue.js.org/docs/
    'bootstrap-vue/nuxt',
    '@nuxtjs/pwa',
  ],

  /*
  ** Build configuration
  */
  build: {
    /*
    ** You can extend webpack config here
    */
    extend(config, ctx) {
    }
  }
}

please let me know if there is other info needed

vasisouv commented 5 years ago

Can confirm as well

create-nuxt-app options:

Framework:

Features:

UI Framework:

Test Framework:

Rendering mode:

vasisouv commented 5 years ago

Related to: https://github.com/bootstrap-vue/bootstrap-vue/issues/3397