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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse comment incorrectly #3263

Closed
JounQin opened this issue Jul 25, 2019 · 1 comment
Closed

Parse comment incorrectly #3263

JounQin opened this issue Jul 25, 2019 · 1 comment

Comments

@JounQin
Copy link

@JounQin JounQin commented Jul 25, 2019

馃悰 bug report

馃帥 Configuration (.babelrc, package.json, cli command)

no config

馃 Expected Behavior

No Error

馃槸 Current Behavior

馃毃  /Users/JounQin/Workspaces/GitHub/Slides/node_modules/vue-mark-display/dist/vue-mark-display.js:2096:12: Unterminated string constant (2096:12)
  2094 |           // http://stackoverflow.com/a/26603875
  2095 |           code +=
> 2096 |             '\n +
       |            ^
  2097 |             btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
  2098 |             ' */';
  2099 |         }

馃拋 Possible Solution

馃敠 Context

馃捇 Code Sample

https://unpkg.com/vue-mark-display@0.1.3/dist/vue-mark-display.js

code +=
  '\n/*# sourceMappingURL=data:application/json;base64,' +
  btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
  ' */';

馃實 Your Environment

Software Version(s)
Parcel 1.12.3
Node v12.7.0
npm/Yarn yarn 1.17.3
Operating System Darwin Kernel Version 19.0.0: Thu Jul 11 18:37:36 PDT 2019; root:xnu-6153.0.59.141.4~1/RELEASE_X86_64
@mischnic

This comment has been minimized.

Copy link
Member

@mischnic mischnic commented Jul 25, 2019

Yes, this is a known bug. Duplicate of #2408

@mischnic mischnic closed this Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can鈥檛 perform that action at this time.