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 PostsI 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.
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 PostsHi 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 PostsHi 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
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 PostsHappy you got it. Usually the problem is structure errors in the project