Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Orajo opened this issue Nov 23, 2022 · 2 comments
Open

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

Orajo opened this issue Nov 23, 2022 · 2 comments

Comments

@Orajo
Copy link

Orajo commented Nov 23, 2022

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)

@lahmatiy
Copy link
Member

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

@jyotir07
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants