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

Uncaught Error: failed to require "fs" #30

Open
mildfuzz opened this issue May 15, 2014 · 5 comments
Open

Uncaught Error: failed to require "fs" #30

mildfuzz opened this issue May 15, 2014 · 5 comments

Comments

@mildfuzz
Copy link

Getting Uncaught Error: failed to require "fs" when I try to include a jade template:

require.config({
    baseUrl: '/',
    paths: {
        'jade': 'require-jade/jade'
    }
});

require(['jade!contact'], function(contact) {
});

Template is being served by an express.js server.

@crissdev
Copy link
Contributor

I guess you have either extends either include in your template. These features are not currently supported by this plugin.

@mildfuzz
Copy link
Author

I do have extends. Okay, I can refactor my templates to not use this functionality, but do we know what are the blockers to adding this support to the plugin?

@crissdev
Copy link
Contributor

@mildfuzz To be honest, I tried to have this feature but it turned out to be more complicated than I thought. Since I am working with Webstorm it was easy for me to setup a file watcher and generate the HTML for any JADE in the project. Since you won't publish your JADE files to your production server (I guess) you could do the same or use this Grunt plugin.

Please have in mind that the plugin is using Jave v0.30.0 - the latest version of Jade is 1.3.1

@mildfuzz
Copy link
Author

So should now be considered 'unsupported'?—
Sent from Mailbox

On Thu, May 15, 2014 at 10:10 AM, Cristian Trifan
[email protected] wrote:

@mildfuzz To be honest, I tried to have this feature but it turned out to be more complicated than I thought. Since I am working with Webstorm it was easy for me to setup a file watcher and generate the HTML for any JADE in the project. Since you won't publish your JADE files to your production server (I guess) you could do the same or use this Grunt plugin.

Please have in mind that the plugin is using Jave v0.30.0 - the latest version of Jade is 1.3.1

Reply to this email directly or view it on GitHub:
#30 (comment)

@crissdev
Copy link
Contributor

Well I'm not the one to say this...but this shouldn't be a stopper for your project. There is this fork that might have what you're looking for.

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