You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: original.line and original.column are not numbers when a mapping entry only contains a single field. #18
00:47:03 Error: [postcss] original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
00:47:03 at SourceMapGenerator.SourceMapGenerator_validateMapping [as _validateMapping] (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/source-map-js/lib/source-map-generator.js:276:15)
00:47:03 at SourceMapGenerator.SourceMapGenerator_addMapping [as addMapping] (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/source-map-js/lib/source-map-generator.js:110:12)
00:47:03 at /home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/source-map-js/lib/source-map-generator.js:72:17
00:47:03 at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/source-map-js/lib/source-map-consumer.js:155:7)
00:47:03 at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/source-map-js/lib/source-map-generator.js:48:24)
00:47:03 at MapGenerator.generateMap (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/map-generator.js:101:37)
00:47:03 at MapGenerator.generate (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/map-generator.js:85:19)
00:47:03 at new NoWorkResult (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/no-work-result.js:33:46)
00:47:03 at Processor.process (/home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]/node_modules/postcss/lib/processor.js:51:14)
00:47:03 at runPostcss (file:///home/jenkins/workspace/Geiger/geiger-upgrade-deps/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-e4a495ce.js:287:6) {
00:47:03 code: 'PLUGIN_ERROR',
00:47:03 loc: { column: undefined, line: undefined },
Alexander said that it's a known bug but he didn't have time to solve it because of private business in real life.
Andrey suggests skipping broken source maps. I am fine with this suggestion but the real problem is that nobody of us are familiar with source code and how it actually works. I will try to look deeper into the code but can't promise anything.
🤔 Should we then maybe consider moving away from source-map-js for PostCSS?
If I understand it correctly source-map-js is a rescue project for source-map because it radically changed direction and became a rust project.
Finding a different package for source maps might be a better long term solution?
Activity
romainmenke commentedon Jan 25, 2024
Related issue in original repo : mozilla#385
ai commentedon Jan 26, 2024
Stacktrace of the error:
7rulnik commentedon Mar 17, 2024
Hey guys! We discussed it a bit in private with @ai and @alexander-akait
Alexander said that it's a known bug but he didn't have time to solve it because of private business in real life.
Andrey suggests skipping broken source maps. I am fine with this suggestion but the real problem is that nobody of us are familiar with source code and how it actually works. I will try to look deeper into the code but can't promise anything.
ai commentedon Mar 17, 2024
Just not that I suggest skipping broken mapping (pos 1 > pos 2), not entire source map 😅
romainmenke commentedon Mar 17, 2024
Thank you for the update @7rulnik
🤔 Should we then maybe consider moving away from
source-map-jsfor PostCSS?If I understand it correctly
source-map-jsis a rescue project forsource-mapbecause it radically changed direction and became a rust project.Finding a different package for source maps might be a better long term solution?
7rulnik commentedon Mar 17, 2024
@romainmenke in my opinion — yes
There are different implementations tc39/ecma426#47
But let's keep this issue related only to source-map-js
ai commentedon Mar 17, 2024
@romainmenke can you find a good alternative with sync API?
ai commentedon Mar 17, 2024
SourceMapConsumeris part of PostCSS public API. I can’t change the implementation.7rulnik commentedon Mar 17, 2024
https://github.com/7rulnik/source-map-js/releases/tag/v1.1.0
Huge thanks @ai!
Closing this for now.
romainmenke commentedon Mar 17, 2024
Thank you @ai, @7rulnik 🙇