导出错误??? ('caterpillartaglist'已经被导出。导出的标识符必须是唯一的“。)但是只有1个导出(React Native)

时间:2019-03-07 01:31:10

标签: javascript reactjs react-native javascript-objects react-native-ios

现在我正遇到最奇怪的错误。我有一个.js文件,其中有一个要导出的对象列表。但是,在运行程序时,我一直收到此错误,并不断说我要导出的内容(“'caterpillartaglist'已经导出。导出的标识符必须是唯一的”)。尽管我只导出了一次,而我的.js文件甚至不到127行。我已经尝试捕获此错误已有几天了,而且似乎没有任何效果。任何建议将不胜感激!

    export const beautifulwoodnymphimageList = 
    [{key:'beautifulwoodnymph01', imageSource: require('../assets/ArboretumPhotos/Beautiful_Wood_Nymph/beautifulwoodnymph1.jpg')},
    {key:'beautifulwoodnymph02', imageSource: require('../assets/ArboretumPhotos/Beautiful_Wood_Nymph/beautifulwoodnymph2.jpg')},];

export const cecropiamothimageList = 
    [{key:'cecropiamoth01', imageSource: require('../assets/ArboretumPhotos/Cecropia_Moth/cecropiamoth1.jpg')},
    {key:'cecropiamoth02', imageSource: require('../assets/ArboretumPhotos/Cecropia_Moth/cecropiamoth2.jpg')},
    {key:'cecropiamoth03', imageSource: require('../assets/ArboretumPhotos/Cecropia_Moth/cecropiamoth3.jpg')},];

export const easterntentcaterpillarimageList = 
    [{key:'easterntentcaterpillar01', imageSource: require('../assets/ArboretumPhotos/Eastern_Tent_Caterpillar/easterntentcaterpillar1.jpg')},
    {key:'easterntentcaterpillar02', imageSource: require('../assets/ArboretumPhotos/Eastern_Tent_Caterpillar/easterntentcaterpillar2.jpg')},];

export const monarchimageList = 
    [{key:'monarch01', imageSource: require('../assets/ArboretumPhotos/Monarch/monarch1.jpg')},
    {key:'monarch02', imageSource: require('../assets/ArboretumPhotos/Monarch/monarch2.jpg')},
    {key:'monarch03', imageSource: require('../assets/ArboretumPhotos/Monarch/monarch3.jpg')},
    {key:'monarch04', imageSource: require('../assets/ArboretumPhotos/Monarch/monarch4.jpg')},
    {key:'monarch05', imageSource: require('../assets/ArboretumPhotos/Monarch/monarch5.jpg')},];   

export const mourningcloakimageList = 
    [{key:'mourningcloak01', imageSource: require('../assets/ArboretumPhotos/Mourning_Cloak/mourningcloak1.jpg')},
    {key:'mourningcloak02', imageSource: require('../assets/ArboretumPhotos/Mourning_Cloak/mourningcloak2.jpg')},
    {key:'mourningcloak03', imageSource: require('../assets/ArboretumPhotos/Mourning_Cloak/mourningcloak3.jpg')},
    {key:'mourningcloak04', imageSource: require('../assets/ArboretumPhotos/Mourning_Cloak/mourningcloak4.jpg')},  
    {key:'mourningcloak05', imageSource: require('../assets/ArboretumPhotos/Mourning_Cloak/mourningcloak5.jpg')},];

export const polyphemusmothimageList = 
    [{key:'polyphemusmoth01', imageSource: require('../assets/ArboretumPhotos/Polyphemus_Moth/polyphemus moth1.jpg')},
    {key:'polyphemusmoth02', imageSource: require('../assets/ArboretumPhotos/Polyphemus_Moth/polyphemus moth2.jpg')},
    {key:'polyphemusmoth03', imageSource: require('../assets/ArboretumPhotos/Polyphemus_Moth/polyphemus moth3.jpg')},
    {key:'polyphemusmoth04', imageSource: require('../assets/ArboretumPhotos/Polyphemus_Moth/polyphemus moth4.jpg')},
    {key:'polyphemusmoth05', imageSource: require('../assets/ArboretumPhotos/Polyphemus_Moth/polyphemus moth5.jpg')},];

export const spinyoakslugimageList = 
    [{key:'spinyoakslug01', imageSource: require('../assets/ArboretumPhotos/Spiny_Oak-Slug/spinyoakslug1.jpg')},
    {key:'spinyoakslug02', imageSource: require('../assets/ArboretumPhotos/Spiny_Oak-Slug/spinyoakslug2.jpg')},
    {key:'spinyoakslug03', imageSource: require('../assets/ArboretumPhotos/Spiny_Oak-Slug/spinyoakslug3.jpg')},
    {key:'spinyoakslug04', imageSource: require('../assets/ArboretumPhotos/Spiny_Oak-Slug/spinyoakslug4.jpg')},];

export const whitemarkedtussockmothimageList = 
    [{key:'whitemarkedtussockmoth01', imageSource: require('../assets/ArboretumPhotos/White-marked-Tussock_Moth/white-marked tussock1.jpg')},
    {key:'whitemarkedtussockmoth02', imageSource: require('../assets/ArboretumPhotos/White-marked-Tussock_Moth/white-marked tussock2.jpg')},
    {key:'whitemarkedtussockmoth03', imageSource: require('../assets/ArboretumPhotos/White-marked-Tussock_Moth/white-marked tussock3.jpg')},];

export const woollybearimageList = 
    [{key:'woollybear01', imageSource: require('../assets/ArboretumPhotos/Woolly_Bear/woollybear1.jpg')},
    {key:'woollybear02', imageSource: require('../assets/ArboretumPhotos/Woolly_Bear/woollybear2.jpg')},
    {key:'woollybear03', imageSource: require('../assets/ArboretumPhotos/Woolly_Bear/woollybear3.jpg')},];

export const blackswallowtailimageList = 
    [{key:'blackSwallowTail01', imageSource: require('../assets/ArboretumPhotos/Black_Swallowtail/blackswallowtail1.jpg')},
    {key:'blackSwallowTail02', imageSource: require('../assets/ArboretumPhotos/Black_Swallowtail/blackswallowtail2.jpg')},
    {key:'blackSwallowTail03', imageSource: require('../assets/ArboretumPhotos/Black_Swallowtail/blackswallowtail3.jpg')},];

export const caterpillartaglist = 
    [{key:'01', name: "Black Swallowtail" , colour: "Green, Black, Yellow" , hair: "None, Smooth" , 
    pattern: "Banded, Spotted", additionalFeatures: "None" ,
    desc:'Info 1'},

    {key:'02', name: "Monarch" , colour: "Black, White, Yellow" , hair: "None, Smooth" , 
    pattern: "Banded", additionalFeatures: "Tentacles" ,   
    desc:'Info 2'},

    {key:'03', name: "Polyphemus" , colour: "Green" , hair: "Sparse" , 
    pattern: "Slashed", additionalFeatures: "None" ,
    desc:'Info 3'},

    {key:'04', name: "Cecropia" , colour: "Green" , hair: "Spotted" , 
    pattern: "Knobs", additionalFeatures: "None" ,
    desc:'Info 4'},

    {key:'05', name: "Beautiful Wood Nymph" , colour: "Orange, Black, White" , hair: "None" , 
    pattern: "Banded, Spotted", additionalFeatures: "None" ,
    desc:'Info 5'},

    {key:'06', name: "Eastern Tent" , colour: "Blue, Brown, Black" , hair: "Sparse, Dense" , 
    pattern: "Striped, Spotted", additionalFeatures: "None" ,
    desc:'Info 6'},

    {key:'07', name: "White-marked Tussock" , colour: "Yellow, Black" , hair: "Tufts" , 
    pattern: "Striped", additionalFeatures: "Lashes" ,
    desc:'Info 7'},

    {key:'08', name: "Mourning Cloak" , colour: "Grey, Blue, Black" , hair: "Sparse" , 
    pattern: "Spotted", additionalFeatures: "Spines" ,
    desc:'Info 8'},

    {key:'09', name: "Wooly Bear" , colour: "Brown, Black, Orange" , hair: "Dense" , 
    pattern: "None", additionalFeatures: "None" ,
    desc:'Info 9'},

    {key:'10', name: "Spiny Oak Slug Moth" , colour: "Green, Yellow, Red, Blue, Brown" , hair: "None" , 
    pattern: "None", additionalFeatures: "Spines" ,
    desc:'Info 10'},
];

0 个答案:

没有答案