Skip to content

Mucks up directory structure when creating tmp dir, can't find file #44

@DustinDSchultz

Description

@DustinDSchultz

My require looks like this:

require('typescript-require')({
    nodeLib: '../../app/typings/index.d.ts',
    targetES5: true,
    exitOnError: false
});

var LoginController = require('../../app/features/login/loginController.ts').LoginController;

But I get this error:

Error: ENOENT: no such file or directory, open '/Users/DSchultz/projects/hcp-portal/tmp/tsreq/app/features/login/loginController.js'

When I investigate what that directory looks like ...

ls tmp/tsreq/app/features/login/

I get these two subdirectories:

config   features

If I follow them down further I see that the file location is actually tmp/tsreq/app/features/login/features/login/loginController.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions