Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay 7.1 React Portlet issue Babel failed processing
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.
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)Attached package.json and error logs for more information.
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)
Attachments:
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
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