MeshLine not rendering and throwing error

Hello, I am new to Three.js. I wanted to render lanes on Google maps based on signal color. I am getting error as below:
three.cjs:6660 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The “position” attribute is likely to have NaN values.

 const points = => this.marker.webGLObject.latLngAltToVector3(p));
const geometry = new THREE.BufferGeometry().setFromPoints( points );
const line = new MeshLine();
            const material = new MeshLineMaterial();
            const mesh = new THREE.Mesh( line, material );

lane.nodes being list of latitudes and longitudes.
Could you please help what should i need to add.