Message Boards

Liferay 7.1 React Portlet issue Babel failed processing

Vishal Munjani, modified 4 Years ago.

Liferay 7.1 React Portlet issue Babel failed processing

Junior Member Posts: 33 Join Date: 2/21/17 Recent Posts
Hello,I have created NPM React Portlet using below command and I am using Liferay CE Portal 7.1.3 GA4.
blade create -t npm-react-portlet -v 7.1 -p com.liferay.npm.react -c MyNpmReactPortlet my-npm-react-portlet
I am having issue while build module for dependency react-select.
Babel failed processing react-select@3.0.8/src/Select.js: it will be copied verbatim (see report file for more info)
Babel failed processing react-select@3.0.8/src/styles.js: it will be copied verbatim (see report file for more info)
Babel failed processing react-select@3.0.8/src/theme.js: it will be copied verbatim (see report file for more info)
Babel failed processing react-select@3.0.8/src/types.js: it will be copied verbatim (see report file for more info)
Babel failed processing react-select@3.0.8/src/utils.js: it will be copied verbatim (see report file for more info)
Attached package.json and error logs for more information.
thumbnail
Alfonso Crisci, modified 4 Years ago.

RE: Liferay 7.1 React Portlet issue Babel failed processing

Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
Hi Vishal, this post from Iván can answer that: https://liferay.dev/forums/-/message_boards/message/104406742#_com_liferay_message_boards_web_portlet_MBPortlet_message_112842562
Also, have you tried the newest generator-liferay-js? It has an improved developer experience and I found it much faster to build/test and deploy. Docs: https://github.com/liferay/liferay-js-toolkit/wiki/How-to-use-generator-liferay-js