Giter Club home page Giter Club logo

Comments (4)

shlomiassaf avatar shlomiassaf commented on July 26, 2024 1

Closing as it seems resolved

from ngc-webpack.

Koslun avatar Koslun commented on July 26, 2024

Got similar errors. Should rather be the angular compiler that is giving you the weird errors.

from ngc-webpack.

GuskiS avatar GuskiS commented on July 26, 2024

@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.

Koslun avatar Koslun commented on July 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.