Unable to change modules without refreshing. For example, if I first import from repeat, it works fine. Without refreshing, if I import curve again, it doesn't work.


under src/bundles/curve/index.ts I defined curve as this.
function curve() {
return 'curve';
}
If I call curve() it says Line 2: Calling non-function value undefined.
Note:
Same issues arises if I import curve then import repeat.
Issue does not arise if I try to change the functions I want to import from within the same module.