parro-it / netcdf4

NodeJS addon to read and write NetCDF4 files
ISC License
39 stars 14 forks source link

Install problem in ionic 4 app #23

Open Arpapiemonte opened 4 years ago

Arpapiemonte commented 4 years ago

Hi, I'm trying to install netcdf4 in a ionic app giving: npm install netcdf4 --save

When I compile, I get this error: ERROR in ./node_modules/netcdf4/build/Release/netcdf4.node 1:0 Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders What can I do? Thanks!

parro-it commented 4 years ago

Hi, this module is a native-addon, so you cannot use it in a browser app. You can, however, use this one in the backend (if you're using node) and then retrieve somehow the data from it.

Otherwise, you can try one of the modules on NPM that works in the browser: https://www.npmjs.com/search?q=netcdf