Skip to content

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

Merged
andy-portmen merged 1 commit intoandy-portmen:masterfrom
justfortherec:fix-118-cannot-find-module
Jul 22, 2024
Merged

Fix #118: Cannot find module '${HOME}/host.js'#119
andy-portmen merged 1 commit intoandy-portmen:masterfrom
justfortherec:fix-118-cannot-find-module

Conversation

@justfortherec
Copy link
Copy Markdown
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
Copy Markdown

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

@yoyoma2
Copy link
Copy Markdown

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