-
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
After compiling it is like this #102
Comments
need more information please . how can you ask for help just like that |
I am facing the same problem. I created a new Angular 8 project and added
My module.exports = {
module: {
rules: [
{
test: /\.pug$/,
use: [
{ loader: 'raw-loader' },
{
loader: 'pug-loader',
options: {
'doctype': 'html',
'pretty': true,
'plugins': [
'pug-plugin-ng'
]
}
}
]
}
]
}
}; And the import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.pug',
styleUrls: ['./app.component.css']
})
export class AppComponent {
} This setup worked perfectly before Angular 8. So I guess something changed there. |
same issue here when i config |
<var>pug = require("!../../../node_modules/pug-runtime/index.js");</var> <function>template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003C!DOCTYPE html\u003E\u003Chtml lang=\"en\"\u003E\u003Chead\u003E\u003Cmeta charset=\"UTF-8\"\u003E\u003Cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\"\u003E\u003Ctitle\u003E我是pug继承来的 login\u003C\u002Ftitle\u003E\u003C\u002Fhead\u003E\u003C\u002Fhtml\u003E\u003Cbody\u003E\u003Cdiv id=\"app\"\u003E\u003C\u002Fdiv\u003E\u003C\u002Fbody\u003E";;return pug_html;}; </function> <module class="exports">= template;</module>
What is the reason and how do I solve it?
The text was updated successfully, but these errors were encountered: