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

In-browser compiler tries to "require('fs')" #3811

Closed
scottb opened this issue Jan 27, 2015 · 2 comments
Closed

In-browser compiler tries to "require('fs')" #3811

scottb opened this issue Jan 27, 2015 · 2 comments
Labels

Comments

@scottb
Copy link

scottb commented Jan 27, 2015

Sourcing the 1.8.0 code from CDNJS into the browser gets an error: "Uncaught ReferenceError: require is not defined"...

<html>
  <script src='//cdnjs.cloudflare.com/ajax/libs/coffee-script/1.8.0/coffee-script.min.js'></script>
  <script type='text/coffeescript'>
      alert "Hello world"
  </script>
</html>
@vendethiel
Copy link
Collaborator

Require is added by the cakefile before the rest of the code. Seems to me there's something else going on.

@jashkenas
Copy link
Owner

Something else indeed. We don't publish to CDNJS — so if they have a problem, you'll have to take it up with them.

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

No branches or pull requests

3 participants