Skip to content
This repository has been archived by the owner. 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

Upgrading vueify from 9.0.0 to 9.3.0 breaks browserify template #162

brokenalarms opened this issue Dec 7, 2016 · 3 comments

Comments

@brokenalarms
Copy link

@brokenalarms brokenalarms commented Dec 7, 2016

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

@bananatron bananatron commented Mar 14, 2017

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

@claudiuionita01
Copy link

@claudiuionita01 claudiuionita01 commented Feb 21, 2018

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

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

@mtx-z mtx-z commented May 2, 2018

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

+-- laravel-elixir-vueify@1.0.6
| `-- vueify@8.7.0
`-- vueify@9.4.1

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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.