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

ReferenceError: $traceurRuntime is not defined #1981

Open
d180cf opened this issue Jul 26, 2015 · 4 comments
Open

ReferenceError: $traceurRuntime is not defined #1981

d180cf opened this issue Jul 26, 2015 · 4 comments

Comments

@d180cf
Copy link

d180cf commented Jul 26, 2015

The code produced by traceur uses this variable (as well as Symbol.iterator which doesn't exist in es5), so when I try to run this code with node, I get this error. Here is an output from travis:

...
> tsumego.js@ test /home/travis/build/d180cf/tsumego.js
> cd tests; npm i; tsc --out es6.js; traceur --modules inline --out es5.js es6.js; node es5
...
/home/travis/build/d180cf/tsumego.js/tests/es5.js:37
      return ($traceurRuntime.createClass)(Pattern, {
              ^
ReferenceError: $traceurRuntime is not defined
...

Is there a setting that would tell traceur to generate a self-sufficient es5 script?

@d180cf
Copy link
Author

d180cf commented Aug 20, 2015

Is there a way to inline this runtime if I want to get a self-sufficient .js file?

@johnjbarton
Copy link
Contributor

You should be able to concatenate the runtime and inline files.
On Aug 19, 2015 7:33 PM, "d180cf" notifications@github.com wrote:

Is there a way to inline this runtime if I want to get a self-sufficient
.js file?


Reply to this email directly or view it on GitHub
#1981 (comment)
.

@d180cf
Copy link
Author

d180cf commented Aug 21, 2015

This will invalidate the source map.

@fritx
Copy link

fritx commented Sep 17, 2015

+1 for this

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

3 participants