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

Error with parcel-bundler #19

Open
nibushibu opened this issue Jun 12, 2020 · 1 comment
Open

Error with parcel-bundler #19

nibushibu opened this issue Jun 12, 2020 · 1 comment
Labels
bug bug to fix

Comments

@nibushibu
Copy link

When I import mojs-player by parcel-bunder, I got the following error.

⚠️  Could not load existing sourcemap of "../../node_modules/@mojs/player/build/mojs-player.js".
🚨  /project-path/node_modules/@mojs/player/build/mojs-player.js:6822:84: Unterminated regular expression (6822:84)
  6820 |                if(sourceMap) {
  6821 |                        // http://stackoverflow.com/a/26603875
> 6822 |                        css += "\n + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
       |                                                                                                        ^
  6823 |                }
  6824 | 
  6825 |                var blob = new Blob([css], { type: "text/css" });
⚠️  Could not load existing sourcemap of "../../node_modules/@mojs/player/build/mojs-player.js".

If I delete if (sourceMap) {...}, I can import it normally.

@Sandstedt
Copy link
Member

That's seems not right. We'll look into it.

@Sandstedt Sandstedt added the bug bug to fix label Jun 12, 2020
@Sandstedt Sandstedt self-assigned this Jun 12, 2020
@xavierfoucrier xavierfoucrier changed the title error with parcel-bundler Error with parcel-bundler Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug to fix
Projects
None yet
Development

No branches or pull requests

2 participants