csso-cli icon indicating copy to clipboard operation
csso-cli copied to clipboard

Syntax error in vm.js (csso-cli v4.0)

Open Orajo opened this issue 3 years ago • 2 comments

Calling csso-cli from command line I got this error. Downgrade to 3.0.0 fix the poroblem (function (exports, require, module, __filename, __dirname) { import { basename, extname } from 'path'; ^

SyntaxError: Unexpected token { at new Script (vm.js:84:7) at createScript (vm.js:264:10) at Object.runInThisContext (vm.js:312:10) at Module._compile (internal/modules/cjs/loader.js:696:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10) at Module.load (internal/modules/cjs/loader.js:628:32) at tryModuleLoad (internal/modules/cjs/loader.js:568:12) at Function.Module._load (internal/modules/cjs/loader.js:560:3) at Module.require (internal/modules/cjs/loader.js:665:17) at require (internal/modules/cjs/helpers.js:20:18)

Orajo avatar Nov 23 '22 09:11 Orajo

Not enough details to understand what the problem is. What version of nodejs are you using?

lahmatiy avatar Feb 28 '23 17:02 lahmatiy

You might just be missing a semi-colon(;)
But js automatically adds this in the end of the line so it can be something else too

jyotir07 avatar Sep 20 '23 14:09 jyotir07