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

package does not seem to work with ts-node in samples-typescript #3

Open
devdoshi opened this issue Jun 16, 2022 · 0 comments
Open

Comments

@devdoshi
Copy link

Thanks for making this package!

I've installed and imported temporal-time-utils in an example from temporal samples-typescript but when I try to run my workflow:

$ npm run workflow

> [email protected] workflow
> ts-node src/client.ts

samples-typescript/hello-world/node_modules/temporal-time-utils/index.ts:1
export { UpdatableTimer } from "./UpdatableTimer";
^^^^^^
SyntaxError: Unexpected token 'export'
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require.extensions.<computed> [as .ts] (samples-typescript/hello-world/node_modules/ts-node/src/index.ts:1587:43)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (samples-typescript/hello-world/src/workflows.ts:4:1)

I'm guessing it was published without the build output.

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

1 participant