Skip to content

Can't resolve absolute import in submodule aha-react #20

@caseykhuc

Description

@caseykhuc

Steps To Reproduce

  1. Clone https://github.com/khuctrang/aha/tree/docs-2.0.3
  2. Run by instruction provided in README.md
  3. In start 5. yarn start, the error should appear:

image

If you're trying to use a package make sure that 'utils/createChainedFunction' is installed. If you're trying to use a local file make sure that the path is correct.
error undefined failed

Can't resolve 'utils/triggerBrowserReflow' in '/Users/casey/got-it/aha-libs/aha/aha-react/src/components/Collapse'

If you're trying to use a package make sure that 'utils/triggerBrowserReflow' is installed. If you're trying to use a local file make sure that the path is correct.
error undefined failed

Can't resolve 'utils/triggerBrowserReflow' in '/Users/casey/got-it/aha-libs/aha/aha-react/src/components/Fade'

If you're trying to use a package make sure that 'utils/triggerBrowserReflow' is installed. If you're trying to use a local file make sure that the path is correct.
not finished Building development bundle - 18.325s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Additional information

The aha-react package started using absolute import since version 2.0.3, reference, and looks like aha documentation has not supported it yet.

The current behavior

  • The document cannot start successfully with aha-react@2.0.3

The expected behavior

  • The document should start successfully with aha-react@2.0.3

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