Ошибка экспорта ??? ('caterpillartaglist' уже был экспортирован. Экспортируемые идентификаторы должны быть уникальными ") Но существует только 1 экспорт (React Native) - PullRequest
0 голосов
/ 07 марта 2019

У меня сейчас самая странная ошибка - я просто чешу голову. У меня есть файл .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'},
];
...