Skip to content

does not work when using react-native start --projectRoot  #22

@macrozone

Description

@macrozone

if you use react-native start --projectRoot storybook and have a local import in that folder that uses babel-plugin-inline-import, the resolved path will be wrong and the import will fail.

e.g. in file storybook/storybook.js you have this:

import schema from './schema.graphql'

this will throw

 bundling failed: Error: Path './schema.graphql' could not be found for '/path/to/project/storybook.js'

The path /path/to/project/storybook.js is suspicious, because this does not exist. it should be /path/to/project/storybook/storybook.js

so i think the resolving of files is wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions