Closed jstheoriginal closed 4 years ago
React Native reports this error:
bundling failed: Error: Unable to resolve module ./action from node_modules/typesafe-actions/dist/typesafe-actions.umd.production.js
./action
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)
Should bundle properly onto device.
I'm guessing it's a distribution issue since the files exist in the repo.
{ "compilerOptions": { "allowJs": true, "checkJs": false, "allowSyntheticDefaultImports": true, "esModuleInterop": true, "isolatedModules": true, "jsx": "react", "lib": ["es2017"], "module": "commonjs", "moduleResolution": "node", "noEmit": true, "incremental": false, // must be false if noEmit is true "strict": true, "target": "esnext", "importHelpers": true, "skipLibCheck": true, "resolveJsonModule": true, "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "pretty": true, "removeComments": true, "sourceMap": true, "forceConsistentCasingInFileNames": true, "experimentalDecorators": true, "baseUrl": ".", "paths": { "*": [ "src/*" ] } }, "include": [ "src", "@types", "cloudkit-js", "babel.config.js" ] }
Hey @jstheoriginal I updated rollup, that's probably some configuration issue, thanks for the report I'll look into it ASAP
Released typesafe-actions@5.1.0-1 with the fix 🎉
typesafe-actions@5.1.0-1
Thanks for the quick fix!
Description
React Native reports this error:
bundling failed: Error: Unable to resolve module
./action
fromnode_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)