You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following statement on the README is not accurate:
Environment doesn't support requiring fetch-mock?
If your client-side code or tests do not use a loader that respects the browser field of package.json use require('fetch-mock/es5/client'). This can also be loaded directly in a script tag as ./node_modules/fetch-mock/es5/client.js (Disclaimer: I haven't actually tried this, but it should work)
es5/client.js is just a babel compiled version of src/client.js, which still attempts to use require. We need another folder (perhaps browser/) that contains a browserify-compiled version of src/client.js.
The text was updated successfully, but these errors were encountered:
The following statement on the README is not accurate:
es5/client.js
is just a babel compiled version ofsrc/client.js
, which still attempts to use require. We need another folder (perhapsbrowser/
) that contains a browserify-compiled version ofsrc/client.js
.The text was updated successfully, but these errors were encountered: