Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

require("./file"); doesn't seem to work with the run command #3

Closed
zanona opened this Issue · 0 comments

1 participant

@zanona
Owner

It seems by running require('./file') within the Run action it is not possible to find the file.

I am pretty sure it's because from the STDIN passed to the output it searches for the file on the volume root like $ cd /file and not path.resolve(__directory, file).

As a temporary workaround it is possible to declare the whole path to the file like

require("/Users/ludicco/Desktop/myLib/file");
@zanona zanona closed this
@zanona zanona reopened this
@zanona zanona closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.