Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lawrence-lee/6f0413ccf7935b4fd44859ef28ac4a4d to your computer and use it in GitHub Desktop.
Save lawrence-lee/6f0413ccf7935b4fd44859ef28ac4a4d to your computer and use it in GitHub Desktop.
> npm-react-portlet@1.0.0 build /opt/dev/projects/github/liferay-portal/master/modules/sdk/project-templates/project-templates-npm-react-portlet/build/npm-react-portlet
> babel --source-maps -d build/resources/main/META-INF/resources src/main/resources/META-INF/resources && liferay-npm-bundler
SyntaxError: src/main/resources/META-INF/resources/lib/index.es.js: Unexpected token (7:3)
5 | render() {
6 | return (
> 7 | <button className='square' onClick={() => this.props.onClick()}>
| ^
8 | {this.props.value}
9 | </button>
10 | );
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! npm-react-portlet@1.0.0 build: `babel --source-maps -d build/resources/main/META-INF/resources src/main/resources/META-INF/resources && liferay-npm-bundler`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the npm-react-portlet@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment