Describe the bug
Doesn't work with typescript + create-react-app from the box.
To Reproduce
Steps to reproduce the behavior:
npx create-react-app app --typescript.
- try to import this module.
- 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.