peerkar/liferay-gsearch

Missing required dependencies when using bundles built from source

Closed this issue · 1 comments

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:Package gsearch-react-web$React which is a dependency of gsearch-react-web$semantic-ui-react@0.88.0 is not deployed in the server' of 'gsearch-react-web$semantic-ui-react@0.88.0/dist/commonjs/index'
    · Missing dependency ':ERROR:Missing version constraints for gsearch-react-web$ReactDOM in package.json of gsearch-react-web$semantic-ui-react@0.88.0' of 'gsearch-react-web$semantic-ui-react@0.88.0/dist/commonjs/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!

I updated the devDependency of liferay-npm-bundler to 2.18.2 in package.json and the problem was gone. Still unclear why semver did not pick that up though.