Could not load existing sourcemap of "node_modules/postcss/lib/map-generator.js".
See original GitHub issueHey, I tried adding postcss/postcssJs to my code and during build it gives me this error.
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:
- Created 4 years ago
- Reactions:1
- Comments:13 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Seems like it is Parcel issue https://github.com/parcel-bundler/parcel/pull/2427