Giter Club home page Giter Club logo

Comments (21)

haikyuu avatar haikyuu commented on August 26, 2024 11

I found a hack to disable the warning:

  1. go to ide-typescript settings packages/ide-typescript
    screen shot 2017-11-29 at 11 49 32 am

  2. click on view code

  3. search for !compilerOptions.experimentalDecorators

  4. replace with /*!compilerOptions.experimentalDecorators*/ false
    screen shot 2017-11-29 at 11 50 05 am

from ide-typescript.

Nicolab avatar Nicolab commented on August 26, 2024 4

Works for me, after update ide-typescript to 0.7.2 and adding a jsconfig.json in root project.

This is the content of my jsconfig.json:

{
  "compilerOptions": {
    "experimentalDecorators": true,
    "exclude": [ "node_modules", "platforms" ]
  }
}

I think it should be in the config package in Atom, to avoid polishing all projects with specific files of multiple packages

from ide-typescript.

Hokid avatar Hokid commented on August 26, 2024 2

i have tsconfig.json with the option in a project, but this not work.
image

from ide-typescript.

rainboxx avatar rainboxx commented on August 26, 2024 1

For me it seems that ide-typescript is not picking up the tsconfilg.json file at all... Additionally, the package https://github.com/sourcegraph/javascript-typescript-langserver used here brings it's own TypeScript version, which is very weird. See sourcegraph/javascript-typescript-langserver#350.

from ide-typescript.

NullVoxPopuli avatar NullVoxPopuli commented on August 26, 2024 1

I have normal js/es6 files (no jsx), and cp tsconfig.json jsconfig.json still has the same message.

from ide-typescript.

itsdarrylnorris avatar itsdarrylnorris commented on August 26, 2024 1

@haikyuu, Great workaround.


ide-typescript is the package that Atom encourage to use for JavaScript projects. I am using this package but I do not use TypeScript, I am only using it for the JavaScript support. For this reason including the tsconfig.json file seems silly to me.

I will love to see an option to remove this warning as part of this package.

from ide-typescript.

caesarsol avatar caesarsol commented on August 26, 2024 1

Confirm working with renaming to jsconfig.json!

I guess for .js files a tsconfig.json is not even read...

I think the experimentalDecorators should not be required for .js files though. Does it make sense?
Which package do you think this proposal should be issued?

from ide-typescript.

damieng avatar damieng commented on August 26, 2024

All options for typescript are set in the tsconfig.json file - this is consistent with other TypeScript editors.

e.g.

{
  "compilerOptions": {
    "experimentalDecorators": true
  }
}

from ide-typescript.

antur123 avatar antur123 commented on August 26, 2024

The same thing happens to me. Already added tsconfig.json file as suggested, but errors are still shown.

from ide-typescript.

damieng avatar damieng commented on August 26, 2024

I suspect you'll need to open the folder where the tsconfig file lives and not the folder above it.

from ide-typescript.

NullVoxPopuli avatar NullVoxPopuli commented on August 26, 2024

I have the same problem. :-
2017-09-17-180308_803x608_scrot

from ide-typescript.

Hokid avatar Hokid commented on August 26, 2024

i did put tsconfig.json in project root with this content:

{
  "compilerOptions": {
      "experimentalDecorators": true
  },
  "include": [
      "src/**/*"
   ],
   "exclude": [
     "node_modules"
   ]
}

then open some js/jsx file in src folder and the warning appear. Moreever, after 5 min working this plugin eat 4-5 gb RAM.

from ide-typescript.

tomv564 avatar tomv564 commented on August 26, 2024

Those of you seeing this error with JS/JSX files, can you try setting experimentalDecorators in a jsconfig.json instead of a tsconfig file? (see microsoft/vscode#28097)

The ts value in the diagnostic's provider field is a bit misleading in this case.

from ide-typescript.

antur123 avatar antur123 commented on August 26, 2024

from ide-typescript.

tehfailsafe avatar tehfailsafe commented on August 26, 2024

Using a regular TS file still displays error with tsconfig option set to true.

from ide-typescript.

yankouskia avatar yankouskia commented on August 26, 2024

+1

from ide-typescript.

leomoreno avatar leomoreno commented on August 26, 2024

+1

from ide-typescript.

 avatar commented on August 26, 2024

+1

from ide-typescript.

damieng avatar damieng commented on August 26, 2024

Original issue should now be solved as Typescript has been upgraded. We can't default any different behavior for the Typescript server in Javascript mode beyond it reading the jsconfig.json as far as I understand.

from ide-typescript.

damieng avatar damieng commented on August 26, 2024

@caesarsol In fact we could do that if the upstream wrapper is interested in supporting a custom config from Atom. I filed an issue there sourcegraph/javascript-typescript-langserver#433

from ide-typescript.

marty331 avatar marty331 commented on August 26, 2024

For me, I have tsconfig.app.json under my src folder (in addition to tsconfig.json under the root directory), I added "experimentalDecorators": true, in the tsconfig.app.json and the warnings were removed.

from ide-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.