Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load existing sourcemap #51

Open
mallim opened this issue Mar 30, 2019 · 5 comments
Open

Could not load existing sourcemap #51

mallim opened this issue Mar 30, 2019 · 5 comments

Comments

@mallim
Copy link

mallim commented Mar 30, 2019

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?

@mbj36
Copy link
Owner

mbj36 commented Mar 30, 2019

which build you are using ?

@mallim
Copy link
Author

mallim commented Mar 30, 2019

using vue-burger-menu version 2.0.1

doing parcel serve for development

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

@mbj36
Copy link
Owner

mbj36 commented Mar 30, 2019

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

@mallim
Copy link
Author

mallim commented Mar 30, 2019

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?

@mbj36
Copy link
Owner

mbj36 commented Apr 1, 2019

I think you might need Parcel source map loader - Please check this issue here - parcel-bundler/parcel#741

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

No branches or pull requests

2 participants