TS2306: File 'blobs/v2/animate/index.js' is not a module.
kareljan opened this issue · 3 comments
kareljan commented
When I import the animate blobs like this (or any other way) in typescript
import { canvasPath } from "blobs/v2/animate";
I keep getting the error TS2306: File 'blobs/v2/animate/index.js' is not a module. It works just fine. But it throws the error.
Any ideas?
kareljan commented
Just to collaborate on this issue.
If you adjust the animate.ts file to
export default statefulAnimationGenerator(
canvasBlobGenerator,
renderPath2D,
canvasKeyframeChecker,
);
And import like
import canvasPath from "pathToFiles";
All works and the error is gone.
g-harel commented
Hey, so sorry I missed this. Will take a look ASAP