I'm building my react project with rollup, and because of some libs I need to activate browser: true on rollup-node-resolver, but I cannot build my app because of the following error: [!] Error: 'createAction' is not exported by node_modules/typesafe-actions/dist/typesafe-actions.umd.production.js
Mandatory info
[ ] Are you extending internal types to enable type-free syntax with createReducer?
Description
I'm building my react project with rollup, and because of some libs I need to activate
browser: true
on rollup-node-resolver, but I cannot build my app because of the following error:[!] Error: 'createAction' is not exported by node_modules/typesafe-actions/dist/typesafe-actions.umd.production.js
Mandatory info
[ ] Are you extending internal types to enable type-free syntax with
createReducer
?[x] Did you checked compatibility notes and migration guides?
How to Reproduce
No CodeSandbox Link
If no codesandbox, then please provide a full working code example below including actions, reducers and your custom types used in the example.
Below is the rollup config file
Below is how i'm using the createAction function:
Expected behavior
It should build the app with typesafe-actions scripts
Suggested solution(s)
Verify if the umd files are indeed exporting all functions the lib provides.
Project Dependencies
Environment (optional)