Skip to content

bundling failed:Unable to resolve module (rn version 0.46.4) #15364

Closed
@craftdong

Description

@craftdong

in react-native version 0.44,the code below runs well

require('./img/tabbar/pfb_tabbar_homepage_selected@2x.png')

but when i update react-native to version 0.46.4, the code runs error.
the error msg shows:

bundling failed: "Unable to resolve module ./img/tabbar/pfb_tabbar_homepage@2x.png from F:\code\react-native\meituanCopy\src\RootScene.js: could not resolve `F:\code\react-native\meituanCopy\src\img\tabbar\pfb_tabbar_homepage@2x.png' as a folder: it did not contain a package, nor an index file"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions