Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unable to resolve: {path}" when importing a module from upper directory #59

Open
mooko-dev opened this issue Nov 24, 2022 · 2 comments

Comments

@mooko-dev
Copy link

Hello.

Importing a module from upper directory (depth of the upper directory doesn't matter) causes "unable to resolve" error.
Example: import * as test from '../test.js'

How to reproduce

mkdir frida_compile_test
mkdir frida_compile_test/subdir
echo "" > frida_compile_test/test.js
echo "import * as test from '../test.js'" > frida_compile_test/subdir/test2.js
frida-compile frida_compile_test/subdir/test2.js -o bundle.js

On my machine outputs:
unable to resolve: $(pwd)/frida_compile_test/test.js

@zhanghecn
Copy link

Me, too, but I found a lower version that would fix it "frida-compile": "^10.2.5"

@christiancoleman
Copy link

@zhanghecn holy shit. I can't believe that worked for me. You are a life saver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants