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

Failed to generate source map visualization #13

Open
probil opened this issue Jul 18, 2020 · 2 comments
Open

Failed to generate source map visualization #13

probil opened this issue Jul 18, 2020 · 2 comments

Comments

@probil
Copy link

probil commented Jul 18, 2020

$ npx bundle-wizard app.laserhub.com

Produces:

πŸ§™β€  Welcome to bundle-wizard

πŸ€–  Loading https://app.laserhub.com ...

🐒  Finishing up loading...

πŸ“‹  Writing coverage file to disk...

⬇️   Downloading sourcemaps...

πŸ–ΌοΈ   Generating visualization...

⚠️  Failed to generate source map visualization
{
  bundles: [],
  errors: [
    {
      bundleName: '/Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/temp/downloads/4558822.js',
      code: 'Unknown',
      message: '"version" is a required argument.',
      error: Error: "version" is a required argument.
          at Object.getArg (/Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/node_modules/source-map/lib/util.js:24:11)
          at /Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/node_modules/source-map/lib/source-map-consumer.js:207:28
          at async loadSourceMap (/Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/node_modules/source-map-explorer/dist/explore.js:45:16)
          at async Object.exploreBundle (/Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/node_modules/source-map-explorer/dist/explore.js:29:25)
          at async Promise.all (index 0)
          at async explore (/Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/node_modules/source-map-explorer/dist/api.js:31:19)
          at async visualizeBundles (/Users/max/.npm/_npx/14980/lib/node_modules/bundle-wizard/src/functions/visualizeBundles.js:21:18)
    }
  ]
}

node -v -> v14.4.0
Mac OS Catalina: 10.15.6
@aholachek
Copy link
Owner

Hi, when I looked at the website it seems like there aren't any sourcemaps being served. There's only one that gets resolved and that's for hubspot, but it looks like {"status":"error","message":"unparseable url","correlationId":"5f4240d3-9329-483b-965e-ac34fe5bd8f5"}. Is it possible your site isn't serving sourcemaps? If so you might want to try the tool on a local build instead.

@probil
Copy link
Author

probil commented Jul 19, 2020

Hi, @aholachek
Yeah, the website doesn't provide sourcemaps.
I wonder whether it's possible to detect that by the util πŸ€” so a proper message can be printed in the console

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