Skip to content

Warning: Cannot assign to read only property 'subarray' of main.js #315

Closed
@Phinome

Description

@Phinome

I recently updated to node 0.12.1, npm 2.7.3 and right now I’m getting the following error with grunt-contrib-uglify version 0.8.0:

Running "uglify:min" (uglify) task
[Warnings: Cannot assign to read only property 'subarray' of main.js' content]

Uglifying source static/js/main.js failed.
Warning: Uglification failed.
Cannot assign to read only property 'subarray' of main.js' content.
Use --force to continue.

Aborted due to warnings.
Happens with any .js file, so it seems to be a bug either with nodejs v0.12.1 or with this uglify task. Any ideas?

here is my gruntfile.js configuration:

uglify: {
      options: {
        banner: '<%= banner %>'
      },
      js: {
        src : '<%= concat.js.dest %>',
        dest : 'release/<%= pkg.name %>.min.js'
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions