Skip to content

File with single interface export compilation failed #117

Closed
@lifenautjoe

Description

@lifenautjoe

Version : 4.0.5

Given

We have a file named IShape.ts which contains

export interface IShape {
    getArea() : number;
}

When

The file is required in a file named Square.ts which contains an implementation of the IShape interface

import {IShape} from './IShape';

export class Square extends IShape {
    constructor(protected width=0) {

    }

    getArea() : number {
        return this.width * this.width;
    }
}

and we run

$ jspm build ...

Then

jspm does a non-zero exit with

TypeScript Cannot find module './IShape'. (TS2307)
err  Error: Typescript compilation failed
    at file:///home/joel/Documents/Personal/open-source/typescript-jspm-seed-project/typescript-jspm-seed/jspm_packages/github/frankwallis/plugin-typescript@4.0.5/plugin.js:66:27

Finally

Is this related to #97 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions