Message Boards

Getting an error with 'yo liferay-js:adapt' command

Anu Narayanan, modified 3 Years ago.

Getting an error with 'yo liferay-js:adapt' command

Junior Member Posts: 50 Join Date: 4/24/15 Recent Posts

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.

thumbnail
Roselaine Marques, modified 3 Years ago.

RE: Getting an error with 'yo liferay-js:adapt' command

New Member Posts: 13 Join Date: 4/13/20 Recent Posts

Hi Anu, 

Which version are you working on? Could you show us the structure of your React Project? 

Anu Narayanan, modified 3 Years ago.

RE: RE: Getting an error with 'yo liferay-js:adapt' command

Junior Member Posts: 50 Join Date: 4/24/15 Recent Posts

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

thumbnail
Roselaine Marques, modified 3 Years ago.

RE: RE: Getting an error with 'yo liferay-js:adapt' command

New Member Posts: 13 Join Date: 4/13/20 Recent Posts

Happy you got it. Usually the problem is structure errors in the project