-
Notifications
You must be signed in to change notification settings - Fork 119
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
Cannot use val-loader alongside apply/pug loaders #62
Comments
The reason why I would like to use |
So that the require() call is compatible with Node.js. Fixes #62.
Could you test applying 9429786 commit to your pug-loader installation? I believe it should fix the problem, but I'm a bit ambivalent whether or not it should be the right thing to do. Webpack manual's sample code includes the |
Woop woop! That seemed to work nicely. I'll so some more testing and let you know |
Ok.. so A new error arises if I try to do this within
Not sure if this should be a new issue or not. |
This is the same issue. Originally, all Unfortunately, now you are trying to use Webpack-require in a template that is run in Node.js. Without a way to polyfill Webpack-require when run in Node.js, I don't see a way to fix this :( |
I believe I'm not running the template function on the ??server?? entry(index.js) > require('./index.pug') > require('./import.pug') |
Ok.. I think I understand what you mean now 👍 Can you think of any other solutions to my problem? |
👍 |
Any plans to fix this issue? |
+1 |
You can try fix from this PR #67 |
Hey there,
I am trying to require a .pug file, exporting to .html, from my .js files like so..
which should generate ./dest/index.html
I have the following webpack config..
When running
webpack
I get the following error..If I disable
val
, the following output (index.html) is produced...require('halp')
😄
The text was updated successfully, but these errors were encountered: