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

SyntaxError: Unexpected token ... #58

Open
xFloooo opened this issue Mar 25, 2019 · 0 comments
Open

SyntaxError: Unexpected token ... #58

xFloooo opened this issue Mar 25, 2019 · 0 comments

Comments

@xFloooo
Copy link

xFloooo commented Mar 25, 2019

Use storybook + typescript. I do not have .babelrc with babel-plugin-transform-object-rest-spread.
I execute the command storybook-to-ghpages -- --existing-output-dir=.out getting an error

npm run deploy-storybook

> [email protected] deploy-storybook /var/www/components_ui
> storybook-to-ghpages -- --existing-output-dir=.out --dry-run

/var/www/components_ui/node_modules/@storybook/storybook-deployer/bin/storybook_to_ghpages:11
const { config, ...args } = parseArgs(packageJson);
                ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant