question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running without babel

See original GitHub issue

Hey there,

Just a heads up that I’m experiencing some issues running 1.0.0-beta.3 in node in a non-babel project.

I’m doing something basic like

const GeoTIFF = require('geotiff');

GeoTIFF.fromFile('./LC80990692014143LGN00_B2.TIF')
  .then(tiff => {
    console.log(tiff)
  })
  .catch(err => {
    console.log(err)
  })

And it throws

Error: Cannot find module 'babel-runtime/helpers/possibleConstructorReturn'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Module.require (internal/modules/cjs/loader.js:598:17)
   ....

Have also tried requiring geotiff.bundle.js but that left me with

TypeError: (0 , _fs.open) is not a function
    at eval (webpack-internal:///143:822:18)
    at new Promise (<anonymous>)

I’m running on node v9

Cheers Rowan

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
constantiniuscommented, Jul 26, 2018

That is actually a pretty good idea, thanks @DanielJDufour. This particular source might work for smaller files, but on the other hand, you could just copy the relevant source, instantiate it and use the GeoTIFF.fromSource function to create it.

0reactions
constantiniuscommented, Mar 3, 2020

That is very much appreciated, thank you very much!

I guess we should take v12 as our lower end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You don't need Babel with Node - LogRocket Blog
Most of the cool bells and whistles that were once Babel-only are now available natively in Node.js. Here's how you can de-Babel your...
Read more >
React without npm, Babel, or webpack | by Chris Lewis | Medium
React without npm, Babel, or webpack. When I start learning a new tool or framework, I like to try and keep it as...
Read more >
Can JSX run without Babel? - reactjs - Stack Overflow
React doesn't require babel but the library is built on the concept of using ES6 javascript syntax. React app however can be built...
Read more >
It might be time to ditch Babel (even for React projects)
However, what you might not know is that Babel is NOT the only tool to do the 2 tasks above ... In the...
Read more >
Running JSX in your browser without Babel
That's right, your code is not optimized and loading Babel can be too heavy. Remember, it's for just for fun. There is another...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found