Giter Site home page Giter Site logo

Comments (8)

bfan1256 avatar bfan1256 commented on June 6, 2024 1

There still seems to be an error when compiling using ng build --prod
Below is the error:
ERROR in vendor.8131bca24d66709e3bca.bundle.js from UglifyJs Unexpected token: name (Angular2ImageGalleryModule) [vendor.8131bca24d66709e3bca.bundle.js:21638,6]

from angular2-image-gallery.

bfan1256 avatar bfan1256 commented on June 6, 2024 1

The compilation has worked. Thank you so much! Great work! @BenjaminBrandmeier

from angular2-image-gallery.

BenjaminBrandmeier avatar BenjaminBrandmeier commented on June 6, 2024

Please try again with the newly published angular2-image-gallery 0.7.0

from angular2-image-gallery.

bfan1256 avatar bfan1256 commented on June 6, 2024

Alright, will do. Thanks, @BenjaminBrandmeier !

from angular2-image-gallery.

rustygreen avatar rustygreen commented on June 6, 2024

Yep, I'm seeing the same thing.

from angular2-image-gallery.

BenjaminBrandmeier avatar BenjaminBrandmeier commented on June 6, 2024

You are right. I only tried it with ng build and ng build --aot which runs perfectly fine. But ng build --prod doesn't; will have a look into this.

from angular2-image-gallery.

BenjaminBrandmeier avatar BenjaminBrandmeier commented on June 6, 2024

The reason why ng build --prod didn't work was because it uses UglifyJs which has an issue with ES2015 code. So I'm now transpiling to ES5 for the library.

I tested this with angular2-image-gallery 0.7.1 and published it. Please try it again with this version.

from angular2-image-gallery.

bfan1256 avatar bfan1256 commented on June 6, 2024

I will test it now. I will let you know the results.

from angular2-image-gallery.

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.