Coder Social home page Coder Social logo

Comments (7)

bowdenk7 avatar bowdenk7 commented on May 13, 2024

Are you able to specify which version of TypeScript that WebStorm uses to compile? Seems like they don't have support for 2.7?

from typescript-node-starter.

mattwelke avatar mattwelke commented on May 13, 2024

I was setting WebStorm to use the TypeScript compiler in my project, which was 2.7.2. Their website claims that it supports 2.7, but they actually had this bug I'm referring to logged about a month or two ago. So it looks like this is a bug in WebStorm right now which is hopefully somewhere on their road map to fix.

A workaround is to just go back to the old style of importing CommonJS modules.

from typescript-node-starter.

bowdenk7 avatar bowdenk7 commented on May 13, 2024

Might work if you give their latest Release Candidate a shot.

Just curious, is there anything in particular that makes you choose WebStorm, or is it just personal preference?

from typescript-node-starter.

mattwelke avatar mattwelke commented on May 13, 2024

Stronger Intellisense in some situations, refactoring tools etc. Though I haven't committed to using WebStorm over free tools. I was just exploring it. Right now, friction like that was enough to turn me off. I find with Visual Studio Code, I feel less pressure to do things "the JetBrains way". WebStorm wanted me to arrange my build process according to their liking, complaining if files to run after the build aren't there yet (duh, I haven't built yet) and so I'm sticking with Visual Studio Code for now, which seems to break things down into smaller steps that I can manually perform (do a build, then do a run, etc).

from typescript-node-starter.

bowdenk7 avatar bowdenk7 commented on May 13, 2024

Thanks for the details! Always interesting to hear about other people's experiences with different tools.

from typescript-node-starter.

vimkin avatar vimkin commented on May 13, 2024

Disabling checkbox "Also for projects without tsconfig.json" in Settings > Languages & Frameworks > Typescript seems to help.

from typescript-node-starter.

peterblazejewicz avatar peterblazejewicz commented on May 13, 2024

for reference, original issues was related to WebStorm, see their blog post comments:
https://blog.jetbrains.com/webstorm/2016/03/how-to-compile-typescript-in-webstorm/#comment-315741

from typescript-node-starter.

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.