peerkar / liferay-gsearch

Google like search for Liferay 7 CE and DXP
Other
56 stars 36 forks source link

Missing required dependencies when using bundles built from source #26

Closed thomassadowsky closed 3 years ago

thomassadowsky commented 3 years ago

I have the same error as https://github.com/peerkar/liferay-gsearch/issues/23#issue-626518804

I'm getting the following errors in browser console on the search page when I have deployed bundles built by myself. No changes to codebase compared to master, other than building manually with gradle.

Error: The following problems where detected while resolving modules: · Missing dependency ':ERROR:Missing version constraints for gsearch-react-web$crypto in package.json of gsearch-react-web$randombytes@2.1.0' of 'gsearch-react-web$randombytes@2.1.0/index' · Missing dependency 'gsearch-react-web$has@1.0.3/src' of 'gsearch-react-web$get-intrinsic@1.0.2/index'

No problems in same environment with using prebuilt GSearch binaries for Liferay 7.2 SP1 from the repository. Seems like some dependency issue, but I cannot find the exact problem. Any help? Thanks! Building gsearch-react-web

I already checked the solution that helped jsnevala :

I updated the devDependency of liferay-npm-bundler to 2.18.2 in package.json and the problem was gone << But didn't work for me.

My system Liferay Community Edition Portal 7.2.1 CE GA2 (Mueller / Build 7201 / November 12, 2019)

Thanks for your help!

thomassadowsky commented 3 years ago

I found a workaround: I specified the dependencies and their versions in package.json to match the versions in the 7.2 binary.