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

Fix #118: Cannot find module '${HOME}/host.js' #119

Merged

Conversation

justfortherec
Copy link
Contributor

@justfortherec justfortherec commented Jan 6, 2023

It appears that Firefox starts the native client from $HOME as the working directory. That leads to the script resolving the relative path host.js as $HOME/host.js.

This fix prefixes the host.js filename with the directory of the run.sh file. Now it works regardless of the working directory and regardless of the directory in which run.sh and the JavaScript files are located (as long as they are in the same location).

Fix: #118

@justfortherec justfortherec changed the title Fix #116 and #118: Cannot find module '${HOME}/host.js' Fix #116: Cannot find module '${HOME}/host.js' Jan 6, 2023
It appears that Firefox starts the native client from `$HOME` as the working directory.
That leads to the script resolving the relative path host.js as `$HOME/host.js`.

This fix prefixes the `host.js` filename with the directory of the run.sh file.
Now it works regardless of the working directory and regardless of the directory in which
`run.sh` and the JavaScript files are located (as long as they are in the same location).

Fix: andy-portmen#118
@justfortherec justfortherec force-pushed the fix-118-cannot-find-module branch from 43da19b to c43a570 Compare January 6, 2023 10:56
@justfortherec justfortherec changed the title Fix #116: Cannot find module '${HOME}/host.js' Fix #118: Cannot find module '${HOME}/host.js' Jan 6, 2023
@izderadicka
Copy link

I do have same problem - this PR fixes it - please merge.

@yoyoma2
Copy link

yoyoma2 commented Jul 22, 2024

I couldn't run the extension on ubuntu 24.04 LTS this fixed it. Please merge and release this. Thanks.

@andy-portmen andy-portmen merged commit 7d22901 into andy-portmen:master Jul 22, 2024
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

Successfully merging this pull request may close these issues.

Error: Cannot find module '${HOME}/host.js'
4 participants