Skip to content

Error with parcel-bundler #19

@nibushibu

Description

@nibushibu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbug to fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions