Skip to content

"Module not found: Can't resolve '@sandstreamdev/react-swipeable-list'" #42

@wildeyes

Description

@wildeyes

Describe the bug
Doesn't work with typescript + create-react-app from the box.

To Reproduce
Steps to reproduce the behavior:

  1. npx create-react-app app --typescript.
  2. try to import this module.
  3. get error from either typescript or webpack (couldn't tell): Module not found: Can't resolve '@sandstreamdev/react-swipeable-list'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
https://codesandbox.io/s/sandstreamdevreact-swipeable-list-with-typescript-9fgmv

notes:
import '@sandstreamdev/react-swipeable-list/dist/styles.css' does actually work, so I'm convinced it's something to do with tsconfig's compilerOptions.module: esnext which can't be overridden, so we must think of some workaround.

Metadata

Metadata

Assignees

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