wellio.js icon indicating copy to clipboard operation
wellio.js copied to clipboard

Possible problem with wellio.loadLAS("well.LAS")

Open JustinGOSSES opened this issue 3 years ago • 4 comments

It looks like maybe wellio.loadLAS() has a problem when used on front-end in browser.

Couldn't get it to run without problem and looks like the demo page always uses ajax to load the file in the demo...so not sure if new problem or just missed it due to that?

We did make a change recently to get it to run well with REACT, so maybe problem from that?

JustinGOSSES avatar May 06 '22 22:05 JustinGOSSES

Made examples here: https://github.com/JustinGOSSES/wellio-playground Some explanation in README

JustinGOSSES avatar May 06 '22 23:05 JustinGOSSES

Maybe would be easier to just recommend people use AJAX to load files if they aren't using webpack or browserify to bundle everything? That would avoid the problems with detecting fs and other options that work for loading files in each possible situation?

JustinGOSSES avatar Jun 05 '22 02:06 JustinGOSSES

As shown in https://justingosses.github.io/wellio-playground/demo_noBrowserifyWithTimeOutCrutch/ live example and repo in https://github.com/JustinGOSSES/wellio-playground/tree/main/demo_noBrowserifyWithTimeOutCrutch

JustinGOSSES avatar Jun 05 '22 02:06 JustinGOSSES

This is a low priority issue as using wellio.js works, just not in an older manner of using ajax. Not a blocker really for anyone. Should fix at some point for completeness.

JustinGOSSES avatar Jun 24 '24 01:06 JustinGOSSES