Running without babel
See original GitHub issueHey 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:
- Created 5 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 theGeoTIFF.fromSource
function to create it.That is very much appreciated, thank you very much!
I guess we should take v12 as our lower end.