Transition shorthand property throws error because of sourcemaps (3.7.1)
See original GitHub issueOriginally posted to gulp-less
https://github.com/gulp-community/gulp-less/issues/299. But the issue is with the LESS itself.
lessc 3.7.1
=> Error with lessc --source-map=file.map styles.less styles.css
:
SyntaxError: Cannot read property 'substring' of undefined in /Users/.../components/button.less on line 62, column 3:
61 cursor: pointer;
62 transition: background-color @duration-short @easing-out;
63 border-radius: @base-border-radius;
gulp-less 4.0.1
stacktrace of the error is telling more:
Potentially unhandled rejection [2] TypeError: Cannot read property 'substring' of undefined
at SourceMapOutput.add (/Users/.../node_modules/less/lib/less/source-map-output.js:72:39)
at Call.genCSS (/Users/.../node_modules/less/lib/less/tree/call.js:86:12)
at Expression.genCSS (/Users/.../node_modules/less/lib/less/tree/expression.js:54:23)
at Declaration.genCSS (/Users/.../node_modules/less/lib/less/tree/declaration.js:35:20)
at Ruleset.genCSS (/Users/.../node_modules/less/lib/less/tree/ruleset.js:508:18)
at Ruleset.genCSS (/Users/.../node_modules/less/lib/less/tree/ruleset.js:508:18)
at SourceMapOutput.toCSS (/Users/.../node_modules/less/lib/less/source-map-output.js:123:24)
at SourceMapBuilder.toCSS (/Users/.../node_modules/less/lib/less/source-map-builder.js:23:35)
at ParseTree.toCSS (/Users/.../node_modules/less/lib/less/parse-tree.js:33:47)
at /Users/.../node_modules/less/lib/less/render.js:35:40
at /Users/.../node_modules/less/lib/less/parse.js:86:21
at ImportVisitor.finish [as _finish] (/Users/.../node_modules/less/lib/less/parser/parser.js:240:28)
at ImportVisitor._onSequencerEmpty (/Users/.../node_modules/less/lib/less/visitors/import-visitor.js:36:14)
at ImportSequencer.tryRun (/Users/.../node_modules/less/lib/less/visitors/import-sequencer.js:50:14)
at /Users/.../node_modules/less/lib/less/visitors/import-sequencer.js:19:25
at fileParsedFunc (/Users/.../node_modules/less/lib/less/import-manager.js:63:17)
at /Users/.../node_modules/less/lib/less/import-manager.js:137:25
at finish (/Users/.../node_modules/less/lib/less/parser/parser.js:240:28)
at Object.parse (/Users/.../node_modules/less/lib/less/parser/parser.js:248:24)
at loadFileCallback (/Users/.../node_modules/less/lib/less/import-manager.js:136:68)
at <anonymous>
It works fine without sourcemaps option.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
CSS transition shorthand with multiple properties?
If you have several specific properties that you want to transition in the same way (because you also have some properties you specifically ......
Read more >Firebase JavaScript SDK Release Notes - Google
Cloud Firestore. Fixed a bug that threw a FAILED_PRECONDITION error when writing to a deleted document in a transaction. See Github ...
Read more >cssnano/CHANGELOG.md
139, * `stylehacks` does not throw error on `[attr]` selector ... doesn't merge border properties if there is a shorthand property between them....
Read more >Hazelcast 3.7.1 Reference Manual
Hazelcast Reference Manual explains all in-memory data grid features provided by Hazelcast in detail with code samples and configuration ...
Read more >Dependencies | @thewhite/react-table | npm
arrow_right @material‑ui/core. 3.2.0 Notes Relation Licenses Dep...
Version 3.2.0 Published October 7, 2018 Description
arrow_right @types/jest. 22.2.3 Notes Relation Licenses Dep...
Version 22.2.3 Published April 11,...
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 FreeTop 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
Top GitHub Comments
v3.8.1 released
@mahish Great!