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

Error: require.paths is removed #10

Open
kwerty opened this issue Sep 14, 2011 · 0 comments
Open

Error: require.paths is removed #10

kwerty opened this issue Sep 14, 2011 · 0 comments

Comments

@kwerty
Copy link

kwerty commented Sep 14, 2011

var template = require('node-t');

Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.

So I edited index.js, commented out this line

//require.paths.unshift(__dirname + '/lib');

Changed these lines below

tags = require("./lib/tags"),
parser = require("./lib/parser"),
widgets = require("./lib/widgets"),
filters = require('./lib/filters'),

Seems to be working

sufianrhazi pushed a commit to sufianrhazi/swig that referenced this issue Oct 3, 2011
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