Comments (21)
I found a hack to disable the warning:
-
click on view code
-
search for
!compilerOptions.experimentalDecorators
-
replace with
/*!compilerOptions.experimentalDecorators*/ false
from ide-typescript.
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.
i have tsconfig.json
with the option in a project, but this not work.
from ide-typescript.
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.
I have normal js/es6 files (no jsx), and cp tsconfig.json jsconfig.json
still has the same message.
from ide-typescript.
@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.
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.
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.
The same thing happens to me. Already added tsconfig.json
file as suggested, but errors are still shown.
from ide-typescript.
I suspect you'll need to open the folder where the tsconfig file lives and not the folder above it.
from ide-typescript.
from ide-typescript.
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.
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.
from ide-typescript.
Using a regular TS file still displays error with tsconfig option set to true.
from ide-typescript.
+1
from ide-typescript.
+1
from ide-typescript.
+1
from ide-typescript.
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.
@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.
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)
- When installing 0.7.9 HOT 1
- Outline not working with ".js" files HOT 9
- Cannot find name process HOT 3
- Uncaught ReferenceError: reject is not defined HOT 5
- IDE-TypeScript is causing unwanted modifications to open file on save HOT 3
- Suppress certain warnings for JavaScript HOT 10
- v0.8.0 does not parse JSX in .tsx files HOT 4
- Problems when used together with ide-vue
- Support for .vue files HOT 1
- [Feature] Add support for "compileOnSave" HOT 1
- Uncaught ReferenceError: reject is not defined HOT 9
- activationHooks prevent ide-typescript from activating when using language-babel package HOT 2
- Document should be opened for completion HOT 1
- [Feature] Allow using locally installed version of tsserver HOT 2
- TSX syntax not recognized HOT 5
- find references project wide HOT 1
- Upgrade typescript version to support new language features HOT 3
- Find an alternate data tip mechanism HOT 1
- ide-typescript package is interfering in autocomplete-plus package HOT 1
- "Enable Atom-Typescript for JavaScript files" is always enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ide-typescript.