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

Module Not Exported for NodeJS #4

Open
PowerOfM opened this issue Aug 6, 2017 · 0 comments
Open

Module Not Exported for NodeJS #4

PowerOfM opened this issue Aug 6, 2017 · 0 comments

Comments

@PowerOfM
Copy link

PowerOfM commented Aug 6, 2017

The file micro-enum.js has no module.exports definition. Since this file is imported by index.js, the result is an empty object.

Test script:

const Enum = require('simple-enum')

var MyEnum = Enum('A', 'B', 'C')

When running that script:
TypeError: Enum is not a function

The REPL shows that Enum is an empty object.

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