How can I make http requests (GET / POST / PUT / DELETE) in StencilJS?
I tried using axios as follows: Did npm install axios --save and in the stencil component import axios from 'axios';. As soon as I call axios.get(...)I get the following error message:
[ ERROR ] bundling: node_modules/axios/lib/adapters/http.js, line: 4
A module cannot import itself
L3: var utils = require('./../utils');
L4: var settle = require('./../core/settle');
L5: var buildURL = require('./../helpers/buildURL');
I understand it might have to do with this issue: https://github.com/ionic-team/stencil/issues/98
However, any recommendations on how to get html requests work within a stencil component?