Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Upgrading vueify from 9.0.0 to 9.3.0 breaks browserify template #162

Open
brokenalarms opened this issue Dec 7, 2016 · 3 comments
Open

Comments

@brokenalarms
Copy link

https://github.com/vuejs-templates/browserify

17:28:42] Finished 'vueify' after 9.03 ms
...
    sourceMap: options._flags.debug
                             ^

TypeError: Cannot read property 'debug' of undefined

Gives the same error as per using gulp with latest version, #138, so it is a breaking change that seems not the fault of the other tool. Therefore fixing this will fix both of these issues.

thomas07vt added a commit to thomas07vt/vueify that referenced this issue Feb 23, 2017
options._flags is not always set when using browserify transformations

- version affected: "vueify": "^9.4.0"

Example of failure in gulp file

```javascript
// package.json
gulp.task('all', function() {
    process.env.NODE_ENV = 'production';
    return browserify('./source/js/all.js')
        .transform(babelify.configure({ presets: ["es2015"]}))
        .transform(vueify)
        .bundle()
        .pipe(source('./js/all.js'))
        .pipe(buffer())
        .pipe(rev())
        .pipe(gulp.dest(pub))
        .pipe(rev.manifest('./build/rev-manifest.json', {
          base: '',
          merge: true
        }))
        .pipe(gulp.dest('.'));
});

```

```bash
$ gulp all

[19:15:56] Using gulpfile ~/gulpfile.js
[19:15:56] Starting 'all'...
code/node_modules/vueify/index.js:12
    sourceMap: options._flags.debug
                             ^

TypeError: Cannot read property 'debug' of undefined
    at vueify (code/node_modules/vueify/index.js:12:30)

```
@bananatron
Copy link

This issue still seems to exist - a downgrade to 9.0.0 fixes this.

@claudiuionita01
Copy link

I have this issues as well, using the latest version.

DougBeney pushed a commit to DougBeney/vueify that referenced this issue Apr 11, 2018
This fixes the error that throws "sourceMap: options._flags.debug TypeError: Cannot read property 'debug' of undefined"
@mtx-z
Copy link

mtx-z commented May 2, 2018

Is 7a9c05d merged in latest release ? I still have the issue

Manually changing /node_moules/vueify/index.js to match 7a9c05d fix the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants