I have been trying to parse some GML to GeoJSON, however in the output features the geometry is always null. I think this is due to the GML parser defaulting to GML3. I thought I would clone the repository and update the options object so that I can pass in an option to use GML2/GML3.
However when I try to build the cloned repository (npm run build) I get the following errors.
ERROR in ./src/wfs.js
Module not found: Error: Can't resolve 'ol/format/geojson' in '/home/james/projects/gml-to-geojson/src'
@ ./src/wfs.js 12:38-66
@ ./src/index.js
ERROR in ./src/wfs.js
Module not found: Error: Can't resolve 'ol/format/gml' in '/home/james/projects/gml-to-geojson/src'
@ ./src/wfs.js 8:34-58
@ ./src/index.js
ERROR in ./src/wfs.js
Module not found: Error: Can't resolve 'ol/format/wfs' in '/home/james/projects/gml-to-geojson/src'
@ ./src/wfs.js 10:34-58
@ ./src/index.js
The Openlayers ol npm package is installed and present in the node_modules folder, am I missing something with the webpack.config.js settings file. Any help would really be appreciated.