vue-burger-menu icon indicating copy to clipboard operation
vue-burger-menu copied to clipboard

Could not load existing sourcemap

Open mallim opened this issue 6 years ago • 5 comments
trafficstars

Could not load existing sourcemap

ParcelJS: 1.12.3 VueJS: 2.6.10

node_modules\vue-burger-menu\dist\vue-burger-menu.common.js:579:85: Unterminated regular expression (579:85)
 577 |     css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
  578 |     // http://stackoverflow.com/a/26603875
> 579 |     css += '\n + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
      |                                                                                     ^
  580 |   }
  581 |
  582 |   if (styleElement.styleSheet) {
‼  Could not load existing sourcemap of "node_modules/vue-burger-menu/dist/vue-burger-menu.common.js".

What should I do?

mallim avatar Mar 30 '19 02:03 mallim

which build you are using ?

mbj36 avatar Mar 30 '19 05:03 mbj36

using vue-burger-menu version 2.0.1

doing parcel serve for development

pointing to this ''' main": "./dist/vue-burger-menu.common.js '''

mallim avatar Mar 30 '19 05:03 mallim

Well that's weird, can you try reproducing this issue on CodeSandbox ?

mbj36 avatar Mar 30 '19 06:03 mbj36

Not sure how CodeSandbox work with parceljs

Anyway, I got the files up on github https://github.com/mallim/vue-burger-menu-issue

just do

npx parcel index.html

Is it VueJS 2.6.0 problem or parceljs problem?

mallim avatar Mar 30 '19 13:03 mallim

I think you might need Parcel source map loader - Please check this issue here - https://github.com/parcel-bundler/parcel/issues/741

mbj36 avatar Apr 01 '19 14:04 mbj36