File 'main' needs function 'httpGet' from file 'support.js'
In 'main' I changed from
const { httpGet } = require('./support');
to
import { httpGet } from './support';
and in the support file from
exports.httpGet = (siteUrl) => {
to
export function httpGet(siteUrl) {
but I get
import { httpGet } from ('./support');
^^^^^^
SyntaxError: Cannot use import statement outside a module
What am I missing ?