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.

modifyVars fails when using inline <style type="text/less">

See original GitHub issue

Here is a recreation of the issue using 1.4.1: http://jsfiddle.net/jShpK/

The resulting stacktrace:

TypeError: Cannot read property 'href' of undefined
    at S (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:9:3037)
    at http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:11:12931
    at Object.C [as _finish] (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:9:11306)
    at Object.e.importVisitor.run (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:11:4579)
    at Object.p.parse (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:9:11377)
    at Object.r.modifyVars (http://cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js:11:12886)
    at http://fiddle.jshell.net/jShpK/show/:28:10
    at jQuery.event.dispatch (http://code.jquery.com/jquery-2.0.2.js:4692:9)
    at elemData.handle (http://code.jquery.com/jquery-2.0.2.js:4376:28)

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
matthew-deancommented, Oct 2, 2019

@himanshuwt What same error?

0reactions
leolygcommented, Nov 2, 2019

There is no such problem when using version 1.50, but it appears again when using version 3.9.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Less modifyVars not overriding the styles in webpack when ...
Im using antd with my theme and i didn't import these plugins. my config that works: { loader: 'less-loader', options: { modifyVars: ...
Read more >
The Style Information element - HTML - MDN Web Docs
A cryptographic nonce (number used once) used to allow inline styles in a style-src Content-Security-Policy. The server must generate a ...
Read more >
CSS Variables With Inline Styles - Ahmad Shadeed
With that in hand, I can tweak the inline style to change the value to another keyword.
Read more >
CSP Allow Inline Styles - Content Security Policy
When you enable CSP, it will block inline styles, but there are some ways that you can allow inline styles and still use...
Read more >
inline-css - npm
Inline css into an html file.. Latest version: 4.0.1, last published: 6 months ago. Start using inline-css in your project by running `npm...
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