scalajs-io / nodejs

This project provides Scala.js type-safe bindings for Node.js (current) v8.7.0 and LTS v6.11.4 APIs. The platform supports MEAN (MongoDB, Express, AngularJs, NodeJS), Cassandra, MySQL and many other npm projects.
Apache License 2.0
163 stars 28 forks source link

TypeError: require is not a function #3

Closed JackyChan closed 8 years ago

JackyChan commented 8 years ago

When running the output javascript file on node, it produce the type error, said that require is not a function. According to the nodeJS doc, require isn't actually a global but rather local to each module. So global.require is undefined.

JackyChan commented 8 years ago

My mistake, sorry.