las-js icon indicating copy to clipboard operation
las-js copied to clipboard

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

Open devisals opened this issue 1 year ago • 3 comments

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

devisals avatar Sep 08 '23 22:09 devisals

Hello @nDevised sorry for replying late. Can you post the las file?

iykekings avatar Sep 28 '23 08:09 iykekings

And what version of las-js are you using?

iykekings avatar Sep 28 '23 08:09 iykekings

And what version of las-js are you using?

Using the latest version npm has to offer

devisals avatar Sep 28 '23 16:09 devisals