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
RE: Getting an error with 'yo liferay-js:adapt' command
I am trying to convert a React.js application into Liferay widget and deploy. I entered the command 'yo liferay-js:adapt' and getting the following error
"Error liferay-js:adapt
Loader 'liferay-npm-build-support/lib/loader/wrap-webpack-bundle' is incorrect: it does not export a function"
Any help is appreciated.
Hi Anu,
Which version are you working on? Could you show us the structure of your React Project?
Hi Roselaine, I had a wrong project structure. I was able to correct it and was able to run the commands well.
Thanks for your response.
-Anu
Happy you got it. Usually the problem is structure errors in the project
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™