Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

SyntaxError: missing ) after argument list #6

Closed
Enalmada opened this issue Dec 12, 2018 · 4 comments
Closed

SyntaxError: missing ) after argument list #6

Enalmada opened this issue Dec 12, 2018 · 4 comments

Comments

@Enalmada
Copy link

Enalmada commented Dec 12, 2018

When running npm run webpack on zoid-demo with Windows 10, I get the following error:

basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^
SyntaxError: missing ) after argument list

Also happens using WSL. It seems like the solution is to replace the string ./node_modules/.bin/webpack in the package.json command with ./node_modules/webpack/bin/webpack.js

"webpack": "babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/webpack/bin/webpack.js --progress",

(credit: markpluslabs/react-markplus#89 (comment))

Hope this helps someone trying this out on Windows!

@mecanos28
Copy link

Thanks so much! Saved me at least 3 hours of my life.

@ghost
Copy link

ghost commented Mar 10, 2022

thanks, I had the same issue when running an older project. This save me some hours as well.

@Jiso-Chacko
Copy link

Thanks a lot, saved a lot of time!

@jasvin-singh22
Copy link

Thanks a lot!!!!

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

No branches or pull requests

4 participants