Hi I new to typescript i am trying to import a fun...
# typescript
r
Hi I new to typescript i am trying to import a function but i am getting error below
Copy code
Import sources within a group must be alphabetized.
Copy code
import {ecr} from "./ecr/index";
function:
Copy code
import * as aws from "@pulumi/aws";

export  function ecr (ecrRepo : string){
    new aws.ecr.Repository( ecrRepo, {
        imageScanningConfiguration: {
            scanOnPush: true,
        },
        imageTagMutability: "MUTABLE",
        name: ecrRepo

    });

}
Can someone help me fix this Thanks
"Sometimes the problem is with paths and not imports"
👍 1
1