babel/generator-babel-boilerplate

Failed to parse SourceMap

Closed this issue · 8 comments

I am getting this error in Chrome console with a package I made with this boilerplate: Failed to parse SourceMap.

But the map is under the /dist folder.

Is the repo open source? If so, can you post a link to it?

Did you make any changes to the Gulpfile? What version of the boilerplate are you using?

Provide as much info as you can and I'd be happy to help out :)

Any chance this is related to: webpack/webpack#2145

Good find, @paulfalgout. Definitely seems like it could be related.

@PolGuixe are you using Chrome?

@jmeas the repo is this one:
https://github.com/Zetoff/zetoff-three

I haven't made any changes to the gulpfile, I just added my source code and then ignored the /dist folder in the .gitignore file.

@paulfalgout, @jmeas yes I am using Chrome and the issue is probably related to it. I don't see the same error in Safari.

And I am using Meteor as a build tool.

Is any of you experiencing a similar issue?

Thanks for the update, @PolGuixe ! I'll check out the project later.

Is any of you experiencing a similar issue?

Tbqh I started a new job and haven't used the modules I've made (which are mostly for projects at my old job), so it's been some time since I've been consuming libs built by this boilerplate. I have a few ideas in mind for modules that I plan to build and start using soon, but I haven't yet done it.

So to answer your question, nope : [

For future visitors, refer to the issue that @paulfalgout posted above. It seems that switching the source map option from eval to other options has helped some people.

I'll likely look into this soon to switch the boilerplate off of eval to one that works for me and some other test machines.

Alright, I'm going to close this due to this recent comment: webpack/webpack#2145 (comment)

If anyone has further issues with this, refer to:

  • the above comments, which suggest some fixes
  • the linked webpack issue, which dives more into the root of the problem (it's a long issue...be warned)

If you think the issue is caused by this boilerplate specifically, leave a comment here and we can continue the discussion.