Comments (4)
Closing as it seems resolved
from ngc-webpack.
Got similar errors. Should rather be the angular compiler that is giving you the weird errors.
from ngc-webpack.
@Koslun I resolved it during the time - it was something to do with webpack.LoaderOptionsPlugin
. Don't remember which key excatly - I removed it completely.
Also in here is something about it - https://github.com/AngularClass/angular-starter/blob/master/config/webpack.prod.js#L300
from ngc-webpack.
@GuskiS Ok, so you resolved it using the exact same options? Meaning:
new webpack.LoaderOptionsPlugin({
debug: false,
options: {
htmlLoader: {
// minimize: false // workaround for ng2
// see https://github.com/angular/angular/issues/10618#issuecomment-250322328
minimize: true,
removeAttributeQuotes: false,
caseSensitive: true,
customAttrSurround: [
[/#/, /(?:)/],
[/\*/, /(?:)/],
[/\[?\(?/, /(?:)/]
],
customAttrAssign: [/\)?\]?=/]
}
}
})
I resolved it myself by nestling a another span
tag inside the a
tags marked. I did however base much of our webpack config on that particular starter so have previously been using that config, however thought that it was used due to this issue: angular/angular#10618 (comment). Can't remember why I believed this. Seeing that the issue closed I nonetheless figured I could remove it. Did it with other changes to the build so might not have noticed that this change in particular caused this weird error.
Using it again now and not seeing any errors so will just assume that it's necessary for whatever reason.
from ngc-webpack.
Related Issues (20)
- Missing assets HOT 1
- Error "callback(): The callback was already called" when building with the new cleanup loader HOT 12
- breaks webpack-dll-bundles-plugin HOT 1
- Add missing any to parameter in plugin.d.ts
- AOT build with angular i18n
- Cannot set property 'disable' of undefined (tsconfig inheritance)
- Plugin doesn't work with angular 5.0.0-rc.0 HOT 23
- Angular 5.0.0.rc6 HOT 7
- Angular 5 Issue HOT 2
- 4.1.0 missing ngc-webpack/src/cli.js HOT 1
- Loader typescript chain in AOT ? HOT 2
- js, .d.ts and metadata file not generated
- Watch mode simply doesn't work with 3.x?
- Missing tsickle depedency
- Lint only
- Change log docs?
- 'Must specify "tsConfigPath" in the configuration of @ngtools/webpack.' HOT 1
- ngc version 3 work with webpack 4 HOT 1
- Error: The "@ngtools/webpack" package installed is not compatible with this version of "ngc-webpack" HOT 9
- Angular 7 ngc-webpack HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngc-webpack.