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

TypeError: Cannot read property 'filename' of undefined #6

Open
seansbox opened this issue Jan 25, 2017 · 1 comment
Open

TypeError: Cannot read property 'filename' of undefined #6

seansbox opened this issue Jan 25, 2017 · 1 comment

Comments

@seansbox
Copy link

When compiling an application to exe using nexe, I started getting an error in filesystem/resolvePath:

TypeError: Cannot read property 'filename' of undefined

The line is this:

var root = path.dirname(require.main.filename);

Maybe nexe gets rid of require.main or something. In any case, it seems that the value of root isn't actually used anyway, so I'm wondering if EJS could be updated with this line gone? I've patched the file temporarily and it seems to work fine without it.

Thanks for the library!

@ForbesLindesay
Copy link
Owner

This module is no longer actively maintained. I'm happy to transfer it to you if you would like to maintain it?

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

2 participants