Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead. #4

Open
frck006 opened this issue Dec 22, 2019 · 1 comment

Comments

@frck006
Copy link

frck006 commented Dec 22, 2019

Hi,

When I add this package, the linter indicates a problem on "export":
" Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead."

image

Here my dependencies in package.json:

  "devDependencies": {
    "@babel/core": "^7.7.7",
    "@babel/preset-env": "^7.7.7",
    "@mdi/font": "^4.7.95",
    "@nuxt/typescript-build": "^0.5.2",
    "@nuxt/typescript-runtime": "^0.3.3",
    "@nuxtjs/auth": "^4.8.4",
    "@nuxtjs/axios": "^5.9.0",
    "@nuxtjs/eslint-config-typescript": "^1.0.0",
    "@nuxtjs/proxy": "^1.3.3",
    "@nuxtjs/pwa": "v3.0.0-beta.16",
    "@nuxtjs/vuetify": "^1.9.1",
    "@types/jest": "^24.0.24",
    "@types/lodash.overargs": "^4.7.6",
    "@vue/test-utils": "^1.0.0-beta.29",
    "babel-core": "7.0.0-bridge.0",
    "babel-jest": "^24.9.0",
    "cross-env": "^6.0.3",
    "cypress": "^3.8.0",
    "eslint": "^6.8.0",
    "eslint-config-vuetify": "^0.4.1",
    "eslint-loader": "^3.0.3",
    "eslint-plugin-cypress": "^2.8.1",
    "eslint-plugin-jest": "^23.1.1",
    "intro.js": "^2.9.3",
    "jest": "^24.9.0",
    "jest-serializer-vue": "^2.0.2",
    "loadash": "^1.0.0",
    "npm-check-updates": "^4.0.1",
    "nuxt": "^2.11.0",
    "nuxt-env": "^0.1.0",
    "sass": "^1.23.7",
    "ts-jest": "^24.2.0",
    "ts-node": "^8.5.4",
    "typedoc": "^0.15.5",
    "vue-grid-layout": "^2.3.7",
    "vue-i18n": "^8.15.3",
    "vue-jest": "^3.0.5",
    "vue-json-component": "^0.3.0",
    "vue-meta": "^2.3.1",
    "vue-property-decorator": "^8.3.0",
    "vuedraggable": "^2.23.2",
    "vuetify": "2.1.15",
    "vuex-class": "^0.3.2",
    "vuex-persistedstate": "^2.7.0",
  }

And my eslintrc.js:

module.exports = {

  root: true,
  env: {
    // Whitelist the environment variables provided by Jest
    "jest/globals": true
  },
   plugins: [
     'jest'
  ],
  extends: [
    '@nuxtjs/eslint-config-typescript',
    'vuetify',
    "plugin:cypress/recommended",
    "plugin:jest/recommended",
    "plugin:jest/style",
  ],

  // add your custom rules here
  rules: {
    "space-before-function-paren": ["error", "never"],
    "comma-dangle": ["error", "never"],
  }  
}

And an extract of my "nuxt.config.js"

  buildModules: [
    '@nuxt/typescript-build',
    '@nuxtjs/vuetify'
  ],
  /**
   * Vuetify Config here
   */
  vuetify: {
    // To package icon in app for offline mode.
    // defaultAssets: false,
    optionsPath: '~/vuetify.options.js'
  },
@Lustach
Copy link

Lustach commented Apr 24, 2020

Hi
Have u solved the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants