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

Experimental support for decorators is .... #301

Closed
fortil opened this issue Jun 29, 2017 · 3 comments · Fixed by #310
Closed

Experimental support for decorators is .... #301

fortil opened this issue Jun 29, 2017 · 3 comments · Fixed by #310

Comments

@fortil
Copy link

fortil commented Jun 29, 2017

Hi guys

I am configuring VSC for Vue.., I have a next errors
Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
Cannot find module '~plugins/nuxt-class-component'.
My tsconfig.json

{
  "compilerOptions": {
    "types":[
      "node"
    ],
    "typeRoots": [
      "node_modules/@types"
    ],
    "target": "es5",
    "lib": [
      "dom",
      "es2015",
      "webworker",
      "scripthost",
      "es7",
      "es2015.promise"
    ],
    "module": "es2015",
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "declaration": true,
    "noImplicitAny": false,
    "noImplicitThis": false,
    "strictNullChecks": true,
    "removeComments": true,
    "suppressImplicitAnyIndexErrors": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "baseUrl": ".",
    "paths": {
      "~": ["./"],
      "~assets/*": ["./assets/*"],
      "~components/*": ["./components/*"],
      "~middleware/*": ["./middleware/*"],
      "~pages/*": ["./pages/*"],
      "~plugins/*": ["./plugins/*"],
      "~static/*": ["./static/*"],
      "~store": ["./.nuxt/store"],
      "~/utils/*": ["./utils/*"],
      "~router": ["./.nuxt/router"]
    }
  }
}

And my screenshot of my file is
captura
It not take nothing of configuration file

  • @types/node
  • paths ~

Thanks

@HerringtonDarkholme
Copy link
Member

HerringtonDarkholme commented Jun 29, 2017

Please consider adding a reproducible repository. I cannot reproduce.

My configuration:

{
  "compilerOptions": {
    "target": "es5",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
    "module": "commonjs",                     /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
    "strict": true,                           /* Enable all strict type-checking options. */
    "baseUrl": "./src",                       /* Base directory to resolve non-absolute module names. */
    "paths": {
      "~/*": ["*"]
    },                           /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
    "allowSyntheticDefaultImports": true,  /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */

    "experimentalDecorators": true        /* Enables experimental support for ES7 decorators. */
  }
}

Screen shot

screenshot from 2017-06-29 21-44-36

@fortil
Copy link
Author

fortil commented Jun 29, 2017

Hi

Thanks for your response
https://glitch.com/edit/#!/ejemplo-for-vuter?path=pages/about.vue:33:1

edit
I have a nuxtjs project..

@HerringtonDarkholme
Copy link
Member

HerringtonDarkholme commented Jun 30, 2017

I cannot reproduce experimentalDecorator error.

Though I can reproduce ~components/hola.vue is not found. Node typings does not work as well.

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

Successfully merging a pull request may close this issue.

2 participants