Git Product home page Git Product logo

Comments (3)

terinjokes avatar terinjokes commented on June 2, 2024

@kirkov "drop_console" is supported by UglifyJS, and is listed right on that project's README.

Do you still have the error if the only difference is that you've removed "drop_console" from the configuration?

Also, can you provide the output of npm ls.

from gulp-uglify.

yairEO avatar yairEO commented on June 2, 2024

I also have this error for this:

.pipe(uglify({compress:{ sequences:true, conditionals:true, booleans:true, unused:true, if_return:true, join_vars:true, drop_console:true }, mangle:true}))

Output:

C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node_modules\gulp-util\lib\PluginError.js:72
  if (!this.message) throw new Error('Missing error message');
                           ^
Error: Missing error message
    at new PluginError (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node_modules\gulp-util\lib
\PluginError.js:72:28)
    at DestroyableTransform.minify [as _transform] (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglif
y\index.js:55:20)
    at DestroyableTransform.Transform._read (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node_
modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node
_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12)
    at doWrite (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node_modules\through2\node_modules
\readable-stream\lib\_stream_writable.js:237:10)
    at writeOrBuffer (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node_modules\through2\node_m
odules\readable-stream\lib\_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp-uglify\node_m
odules\through2\node_modules\readable-stream\lib\_stream_writable.js:194:11)
    at write (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2
\node_modules\readable-stream\lib\_stream_readable.js:623:24)
    at flow (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\
node_modules\readable-stream\lib\_stream_readable.js:632:7)
    at DestroyableTransform.pipeOnReadable (C:\xampp\htdocs\gurushots\html\trunk\website\node_modules\gulp\node_modules\
vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:664:5)

C:\xampp\htdocs\gurushots\html\trunk\website>

My npm ls output is way too long to copy, and doesn't get printed as a whole..is cut in the top part. should I look for something in particular? Everything was working fine till recently.

from gulp-uglify.

schnittstabil avatar schnittstabil commented on June 2, 2024

IMHO this is fixed by 4cd6ae0, which drops:

PluginError(pluginName, e.message || e.msg, ...)

@kirkov and @yairEO:
The expression moved from index.js line 55 to line 17 (respectively 18) with 14f5089

Since then there has been no PluginError expression anymore which might throw such an error.
(See git grep "new PluginError" $(git rev-list --all))

from gulp-uglify.

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.