vue-meteor icon indicating copy to clipboard operation
vue-meteor copied to clipboard

After upgrading to Meteor 1.8 and Akryum:[email protected] sourcemap error

Open jamesgibson14 opened this issue 6 years ago • 12 comments

Errors prevented startup:

While processing files with akryum:vue-router2 (for target web.browser):

/Users/jamesgibson/.meteor/packages/akryum_vue-router2/.0.2.2.3d8cvj.f7f9++os+web.browser+web.browser.legacy+web.cordova/plugin.vue-router.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/config/validation/options.js:123:11: .sourceMap is an alias for .sourceMaps, cannot use both at assertNoDuplicateSourcemap

jamesgibson14 avatar Oct 27 '18 23:10 jamesgibson14

Any way to get around this?

GeneralAldo avatar Oct 31 '18 12:10 GeneralAldo

Take look at this babel fix: https://github.com/babel/babel-loader/pull/670

This makes me think that the problem is on line 41 of the vue-router2 plug-in: https://github.com/meteor-vue/vue-meteor/blob/master/packages/vue-router2/plugin/plugin.js

babelOptions.sourceMap = true

should presumably be changed to

babelOptions.sourceMaps = true


However after making above change it then fails with another message:

Using removed Babel 6 option: .sourceMapTarget - The sourceMapTarget option has been removed because it makes more sense for the tooling that calls Babel to assign map.file themselves.

So I also removed the line: babelOptions.sourceMapTarget = babelOptions.filename + '.map'

It now compiles correctly

mwarren2 avatar Dec 18 '18 16:12 mwarren2

Would be nice if this was fixed soonest.

Otherwise we are still stuck with Meteor 1.7

Thanks !

mwarren2 avatar Dec 18 '18 16:12 mwarren2

Hey mwarren2,

my team mate @ahmelkady and me figured it out how to temporarily "solve" this issue. For us it worked to downgrade akryum_vue-router2 from 0.2.2 to 0.2.0 by changing manually the .meteor/versions file.

Best regards

rekDen avatar Jan 07 '19 14:01 rekDen

@rekDen Good idea. I'll downgrade until the problem is fixed

mwarren2 avatar Jan 07 '19 14:01 mwarren2

@Akryum Any chance of this being fixed? It looks like a simple fix yet It is forcing us to stay with Meteor 1.7.

Please see my comments further up this page. I have outlined what I think needs to be done. I have forked vue-router2 and tested the changes and it all works, however I appreciate that obviously I don't have your expertise...

Many thanks.

mwarren2 avatar Jan 28 '19 22:01 mwarren2

Just to +1 this, I'm a new user to the vue/meteor combination (although working with meteor for ~3 years), and starting a project with meteor 1.8 and the akryum set of packages to enable this integration, and right at the beginning, run into this issue. I'd be glad to see this fixed soon too. Thanks in advance!

rpesciotta avatar Feb 04 '19 13:02 rpesciotta

I've replaced akryum:vue-router2 with vue-router. Though I'm still using other akryum vue code.

mwarren2 avatar Sep 18 '19 20:09 mwarren2

hey @mwarren2 what do you mean by replaced?

in which file?

sebbean avatar Nov 06 '19 03:11 sebbean

@sebbean:

meteor remove akryum:vue-router2
meteor npm install --save vue-router

I've never used the akryum version, standard vue-router works perfectly well with Meteor 1.8

wildhart avatar Nov 06 '19 04:11 wildhart

hey @mwarren2 what do you mean by replaced?

in which file?

Please see @wildhart answer

mwarren2 avatar Nov 06 '19 08:11 mwarren2

I just updated to Meteor 1.8.3 and used @wildhart 's suggestion to use the npm package directly. I had to change of view things to migrate, like importing the path/route components directly, and changing a a few other lines of code, but it seems to be working very well now.

jamesgibson14 avatar Jan 09 '20 22:01 jamesgibson14