Git Product home page Git Product logo

less-to-js's People

Contributors

farskipper avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

redheadedstep

less-to-js's Issues

TypeError: Path must be a string. Received undefined

Clean-CSS 3.2.9 dependency in package.json has a bug that was fixed in later revisions with Node 6+.

Running

Marks-iMac:react-es hobby$ ./node_modules/.bin/less-to-js widgets/**/*.less widgets/**/*.css
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at new CleanCSS (/Users/hobby/Projects/react-es/node_modules/clean-css/lib/clean.js:55:130)
    at minifyCSS (/Users/hobby/Projects/react-es/node_modules/less-to-js/index.js:7:10)
    at /Users/hobby/Projects/react-es/node_modules/less-to-js/index.js:20:42
    at /Users/hobby/Projects/react-es/node_modules/less/lib/less/render.js:35:17
    at /Users/hobby/Projects/react-es/node_modules/less/lib/less/parse.js:63:17
    at ImportVisitor.finish [as _finish] (/Users/hobby/Projects/react-es/node_modules/less/lib/less/parser/parser.js:183:28)
    at ImportVisitor._onSequencerEmpty (/Users/hobby/Projects/react-es/node_modules/less/lib/less/visitors/import-visitor.js:35:14)
    at ImportSequencer.tryRun (/Users/hobby/Projects/react-es/node_modules/less/lib/less/visitors/import-sequencer.js:50:14)

This is fixed in later versions of clean-css.

If you can change package.json from

"dependencies": {
    "clean-css": "3.2.9",
    "css-to-css.js": "^1.0.0",
    "each-async": "1.1.1",
    "globby": "1.2.0",
    "less": "2.5.0"
  }

to

"dependencies": {
    "clean-css": "^3.2.9",
    "css-to-css.js": "^1.0.0",
    "each-async": "1.1.1",
    "globby": "1.2.0",
    "less": "2.5.0"
  }

or update clean-css to 3.4.25, that would fix this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.