I am encountering an issue with my TypeScript files in my Google App Project. Here is a breakdown of my files:
src/main.ts
function main(): void {
console.log('main');
hello();
}
src/other.ts
console.log('hello world');
}
This setup generates the following in my project:
src/main.gs
var module = module || { exports: exports };
//import {hello} from "./other";
function main() {
console.log('main');
(0, other_1.hello)();
}
src/other.gs
var exports = exports || {};
var module = module || { exports: exports };
exports.hello = void 0;
function hello() {
console.log('hello world');
}
exports.hello = hello;
However, when I try to run the main()
function in main.gs
, I encounter an error. Check the error message https://i.sstatic.net/2sCzb.png
How can I resolve this issue and make imports work effectively in my clasp project?