facebook

"Cannot find module…" for TypeScript files at the root of the project

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #517199 Reply

    James
    Participant

    Hi,

    Using a simple JavaScript Project, if I try to import a TypeScript file located at the root of the project, I get the error message: “Cannot find module…”. However, I can import a TypeScript file anywhere else in the folder hierarchy just fine.

    Here’s a video reproducing the error:
    https://www.dropbox.com/s/z8k6e53hbgldyf5/ts-import-at-root.webm?dl=0

    …and here are the project files I used:
    https://github.com/jalbr74/webclipse-ts-root-example

    I came across this problem because I typically use TypeScript at the root of my project for configuration files, such as: karma.conf.ts, webpack.config.ts, etc.

    #517371 Reply

    support-piotr
    Participant

    James,

    Thank you for providing a very nice, simple test case. I can reproduce the issue on my side as well and I will be working on a fix ASAP. Sorry for the problems!

    Best regards,
    Piotr Tomiak

    #517425 Reply

    James
    Participant

    Awesome, thanks Piotr!

    #517541 Reply

    support-piotr
    Participant

    James,

    The fix turned out to be very simple and it will be included in the release this week or early next week. Thank you very much for a very good reproduction steps and the project!

    #518855 Reply

    support-swapna
    Moderator

    James,

    Our latest version 2017 CI 4a is out and it includes the fix for the import issue you reported. Please update to CI 4a from Help > Webclipse > Check for Updates and let us know how it works for you.

    –Swapna
    MyEclipse Support

    #519193 Reply

    James
    Participant

    I have verified the update fixes the problem for me. Thanks for such a quick turnaround!

    #519295 Reply

    support-piotr
    Participant

    Awesome, thanks James for reporting the issue!

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: "Cannot find module…" for TypeScript files at the root of the project

You must be logged in to post in the forum log in