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

Appears to not work with ts-node #2

Open
ColaColin opened this issue Jun 25, 2019 · 1 comment
Open

Appears to not work with ts-node #2

ColaColin opened this issue Jun 25, 2019 · 1 comment

Comments

@ColaColin
Copy link

..../node_modules/ts-object-builder/dist/index.js:1
(function (exports, require, module, __filename, __dirname) { export { ObjectBuilder } from './object-builder';

SyntaxError: Unexpected token export

From a bit of google this might be related to this issue here: TypeStrong/ts-node#505

Not sure if I can somehow reconfigure my ts-config to make it work or if this library just does not work with ts-node like this without some serious workarounds?

@pkspks
Copy link
Owner

pkspks commented Sep 12, 2019

@ColaColin , we run our tests for ts-object-builder with ts-node with env TS_NODE_COMPILER_OPTIONS='{"module":"commonjs"}' option. Perhaps your module settings do not match.

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

2 participants