async-react-future
async-react-future copied to clipboard
Can't resolve dependency './future'
Great work setting this up. I had to revert from 0.11 to 0.10 because of a dependency issue. Looks like switch from import to require for some of the libs is breaking my setup.
parcel -V is 1.7.1
/Users/ryanyurkanin/Documents/repos/suspense-async-demo/node_modules/async-react-future/dist/index.es.js:8878:21: Cannot resolve dependency './future'
reverting to 0.10.0 seems to have fixed the problem
future.js
doesn't exist in the dist folder :/
There seems to be an issue with the rollup task:
yarn add git+ssh://[email protected]/sw-yx/async-react-future.git
yarn add v1.3.2
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "react@>= 0.14.0 < 17.0.0-0".
[4/4] 📃 Building fresh packages...
$ yarn run build
yarn run v1.3.2
$ rollup -c
src/index.js → dist/index.js, dist/index.es.js...
(!) `this` has been rewritten to `undefined`
https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
src/mockapi.js
3: import _Promise from 'babel-runtime/core-js/promise';
4:
5: var _this = this;
^
6:
7: /*
(!) Unresolved dependencies
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency
stream (imported by node_modules/styled-components/dist/styled-components.es.js)
created dist/index.js, dist/index.es.js in 2.3s
✨ Done in 3.83s.
[3/4] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "prop-types@^15.6.0".
warning "spectacle-scripts > [email protected]" has unmet peer dependency "prop-types@^15.6.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
└─ [email protected]
✨ Done in 34.41s.
hey folks! not sure what broke it but i have been too busy with life stuff to maintain this. can i enquire as to your usecases @YurkaninRyan @Evanion? I intend to do a complete rewrite of this soon to fit the most recent suspense ecosystem.