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

browserify hangs when run with nunjucksify in a directory that contains a file/folder called "views" #12

Open
alexmchardy opened this issue Oct 9, 2015 · 0 comments

Comments

@alexmchardy
Copy link

Here is a small repo demonstrating this problem.

When I run browserify from a directory that has a folder called views in it, it outputs the transformed source, but never exits.

browserify simple.nunj -t nunjucksify

When I delete the views folder, browserify exits as expected.

Some more observations:

  • Having a file called views (instead of a folder) also causes the issue.
  • It seems to happen if views is in the directory from which browserify is run
  • It happens whether I use a globally or locally installed browserify cli
  • It happens whether I'm using the browserify CLI or API
Update

The call to new nunjucks.Environment() seems to be causing the problem somehow, but I haven't had time to trace it down further.

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