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

Example in usage does not work #30

Closed
mikeparisstuff opened this issue Apr 28, 2017 · 3 comments
Closed

Example in usage does not work #30

mikeparisstuff opened this issue Apr 28, 2017 · 3 comments

Comments

@mikeparisstuff
Copy link

When I try to run the example in the usage section of the README, I get this error:

TypeError: Class constructor Command cannot be invoked without 'new'
    at new default_1 (/Users/michaelparis/Scaphold/code/fetch-schema/build/commands/default.js:8:42)
    at CLI.<anonymous> (/Users/michaelparis/Scaphold/code/fetch-schema/node_modules/clime/bld/core/cli.js:50:35)
    at next (native)
    at fulfilled (/Users/michaelparis/Scaphold/code/fetch-schema/node_modules/clime/bld/core/cli.js:4:58)
@vilicvane
Copy link
Owner

Hi, I just tested the usage case with both the 0.4 and 0.5 version of clime but got no error.

Can you provide detailed information like tsconfig.json, TypeScript version, Node.js version, Clime version?

@scallacs
Copy link

scallacs commented Oct 4, 2017

I had the same problem. I've added this options in my tsconfig.json to make it work

{ "compilerOptions": { "target": "es6", "module": "commonjs", // ... }

Would be nice to document it in the README.md

@vilicvane vilicvane reopened this Oct 5, 2017
@vilicvane vilicvane added the bug label Oct 5, 2017
@vilicvane
Copy link
Owner

@scallacs Thanks, will update README.

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

No branches or pull requests

3 participants