netcdf4 icon indicating copy to clipboard operation
netcdf4 copied to clipboard

Install problem in ionic 4 app

Open Arpapiemonte opened this issue 5 years ago • 1 comments

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!

Arpapiemonte avatar Dec 23 '19 11:12 Arpapiemonte

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

parro-it avatar Apr 15 '20 21:04 parro-it