Skip to content

[BUG]: Importing las-js fails on node v10.x #41

@devisals

Description

@devisals

Describe the bug
Processing file: C:/Users/labadmin/Documents/CSTWeb/(10)77502S_C1L1_02000_00000.las
Processing file: C:/Users/labadmin/Documents/CSTWeb/(11)81604S_C1L1_08000_04000.las
Processing file: C:/Users/labadmin/Documents/CSTWeb/03210N_C1R1_16000_20000_cut_small.las
Processing file: C:/Users/labadmin/Documents/CSTWeb/77902S_C1L1_L1L2_20000_16000.las
TypeError: Cannot read properties of undefined (reading 'split')
at Las. (C:\Users\labadmin\Documents\GitHub\las-js-test\node_modules\las-js\dist\index.js:280:57)
at Generator.next ()
at fulfilled (C:\Users\labadmin\Documents\GitHub\las-js-test\node_modules\las-js\dist\index.js:5:58)

I am having this error when the las file is loaded with a valid path. It seems like something to do with the blobstring part of it. I am not sure however why it occurs. Please let me know how I can address this issue. Thanks

To Reproduce
Steps to reproduce the behavior:

  1. Import '...'
  2. Run '....'
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Here is a screenshot of my code where I am using it:
image
image

Desktop (please complete the following information):

  • OS: Windows 10 64-bit
  • Node Version: 9.6.7

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions