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
I kept getting the rolling error when trying to export web in expo.
Failed to compile
ModuleNotFoundError: Module not found: Error: Can't resolve './dist/abort-controller' in 'node_modules/abort-controller'
Did you mean 'abort-controller.mjs'?
BREAKING CHANGE: The request './dist/abort-controller' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
Node v16.17.1
Here is the diff that solved my problem:
diff --git a/node_modules/abort-controller/polyfill.mjs b/node_modules/abort-controller/polyfill.mjs
index 0602a64..cf581af 100644
--- a/node_modules/abort-controller/polyfill.mjs+++ b/node_modules/abort-controller/polyfill.mjs@@ -1,5 +1,5 @@
/*globals self, window */
-import * as ac from "./dist/abort-controller"+import * as ac from "./dist/abort-controller.mjs"
/*eslint-disable @mysticatea/prettier */
const g =
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.I kept getting the rolling error when trying to export web in expo.
Node v16.17.1
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: