question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load existing sourcemap of "node_modules/postcss/lib/map-generator.js".

See original GitHub issue

Hey, I tried adding postcss/postcssJs to my code and during build it gives me this error.

error1

I’ve implemented postcss-js this way and I use parcel-bundler to build my project.

const postcssJs = require("postcss-js");
const autoprefixer = require("autoprefixer");
const prefixer = postcssJs.sync([autoprefixer]);

        const style = prefixer({
            gridArea: X
        });

Y.style.gridArea = style

Am I doing something wrong or is it actually broken in some way?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nikowondecommented, May 27, 2019

So I mentioned in the first post that error comes up during build, but I could’ve included also that it causes build to fail so I can’t run it while having postcss(-js) activated.

Edit: Kind of a workaround for that problem was to change that line this.css += eol + "/*# sourceMappingURL=" + content + "*/";

into a template-literal: this.css += ${eol}/# sourceMappingURL=${content}/;

But then it doesn’t work in IE 11.

0reactions
aicommented, Jul 13, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't load Existing Source Map Error on Parcel
I am using parcel as my module bundler and i ran into the following error after using it for some time. Below is...
Read more >
Bugsnag docs › API › React Native source map upload
Once a source map is uploaded it will only get applied to new error events. It does not get applied retroactively to existing...
Read more >
Source map support for JavaScript applications - Azure Monitor
Learn how to upload source maps to your own storage account Blob container using Application Insights.
Read more >
source-map-explorer - npm
Analyze and debug JavaScript (or Sass or LESS) code bloat through source maps. The source map explorer determines which file each byte in...
Read more >
Troubleshooting Source Maps for JavaScript
In case the source map files do not contain your original source code ... An example sentry-cli command to upload these files correctly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found