Closed chrisnorristech closed 3 years ago
You shouldn't need all those ../
at all - can you elaborate on what led you to think you do?
Absolutely. I have a util folder in my code. For some reason, I kept getting the error:
"Unable to resolve "../../../app/util" from "node_modules/assert/build/assert.jsโ
When I used expo-notifications
So once I modified the paths for the util call, it all works now.
On May 11, 2021, at 2:06 PM, Jordan Harband @.***> wrote:
You shouldn't need all those ../ at all - can you elaborate on what led you to think you do?
โ You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/browserify/commonjs-assert/issues/52#issuecomment-839015363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVMESMNUF7TPANBRXRYQ63TNF53NANCNFSM44WRYDIA.
That sounds like an expo bug, perhaps? (with bare specifier package names with a trailing slash, perhaps?)
util/
is a bare specifier, and should always grab the closest node_modules/util/
package.
That makes sense. It might be something with expo. I build a base project with the code from expo-notifications and had no issues. Its just with my project, and I have a util folder.
On May 11, 2021, at 2:09 PM, Jordan Harband @.***> wrote:
That sounds like an expo bug, perhaps?
util/ is a bare specifier, and should always grab the closest node_modules/util/ package.
โ You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/browserify/commonjs-assert/issues/52#issuecomment-839020248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVMESMYCWVRSBKKLLIQKS3TNF6IBANCNFSM44WRYDIA.
It'd be great if you filed that issue with them (assuming renaming your "util" to something else fixes the problem), since "needing to patch a package" is a very dangerous situation for any project to be in.
Or I guess I could rename my folder to utils :)
On May 11, 2021, at 2:14 PM, Jordan Harband @.***> wrote:
It'd be great if you filed that issue with them (assuming renaming your "util" to something else fixes the problem), since "needing to patch a package" is a very dangerous situation for any project to be in.
โ You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/browserify/commonjs-assert/issues/52#issuecomment-839026473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVMESPIBV7OID3X5BN3T7TTNF6YRANCNFSM44WRYDIA.
do i just close this issue?
Sure, let's do that :-) but i'd still request you file an issue with expo so they can fix the bug.
How do I do that?
On May 11, 2021, at 2:14 PM, Jordan Harband @.***> wrote:
It'd be great if you filed that issue with them (assuming renaming your "util" to something else fixes the problem), since "needing to patch a package" is a very dangerous situation for any project to be in.
โ You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/browserify/commonjs-assert/issues/52#issuecomment-839026473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVMESPIBV7OID3X5BN3T7TTNF6YRANCNFSM44WRYDIA.
Locate their repo, and do what you did here :-) I don't use expo myself, so I'm not sure which repo would be appropriate.
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch
assert@2.0.0
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.