Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable generate schemas when import is used #35

Open
pleerock opened this issue Aug 17, 2015 · 5 comments
Open

Unable generate schemas when import is used #35

pleerock opened this issue Aug 17, 2015 · 5 comments

Comments

@pleerock
Copy link

When I try to generate schema from this:

import {User} from "users/user";

export interface Post {
    id?: string;
    name: string;
    createdAt: Date;
    updatedAt: Date;
    user: User;
}

I get errors like this:
error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expected.

@steve8708
Copy link

+1

this library is amazing, but without import support I can't use it :(

@marcelbuesing
Copy link

+1 same here

@mweels
Copy link

mweels commented Jul 23, 2016

+1

1 similar comment
@oreporan
Copy link

+1

@oreporan
Copy link

Still having this issue even though the error message says:
src/controller/index.ts(1,1): error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expected.
My first line is an import..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants