piotrwitek / typesafe-actions

Typesafe utilities for "action-creators" in Redux / Flux Architecture
https://codesandbox.io/s/github/piotrwitek/typesafe-actions/tree/master/codesandbox
MIT License
2.41k stars 99 forks source link

v5.1.0-0 Error: bundling failed: Error: Unable to resolve module `./action` from `node_modules/typesafe-actions/dist/typesafe-actions.umd.production.js` #202

Closed jstheoriginal closed 4 years ago

jstheoriginal commented 4 years ago

Description

React Native reports this error:

bundling failed: Error: Unable to resolve module ./action from node_modules/typesafe-actions/dist/typesafe-actions.umd.production.js

I've confirmed that the file it's trying to get isn't there (only the action.d.ts file is there)

Steps to Reproduce

Expected behavior

Should bundle properly onto device.

Suggested solution(s)

I'm guessing it's a distribution issue since the files exist in the repo.

Project Dependencies

Environment (optional)

piotrwitek commented 4 years ago

Hey @jstheoriginal I updated rollup, that's probably some configuration issue, thanks for the report I'll look into it ASAP

piotrwitek commented 4 years ago

Released typesafe-actions@5.1.0-1 with the fix 🎉

jstheoriginal commented 4 years ago

Thanks for the quick fix!