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

PhantomJS PATH not found (deploying to production) #35

Closed
shafy opened this issue Mar 31, 2018 · 4 comments
Closed

PhantomJS PATH not found (deploying to production) #35

shafy opened this issue Mar 31, 2018 · 4 comments

Comments

@shafy
Copy link
Contributor

shafy commented Mar 31, 2018

While it works fine locally, when I try to deploy to production on Heroku it throws the following error:

PhantomJS not found on PATH
remote:        Phantom installation failed TypeError: Path must be a string. Received undefined

I use react-create-app and the https://github.com/mars/create-react-app-buildpack.git build pack on Heroku with yarn.

Any ideas?

@shafy
Copy link
Contributor Author

shafy commented Mar 31, 2018

I did some research and it seems like the issue is resolved in phantomjs-prebuilt@2.1.8 - @tbolis could you try updating that?

E.g. see here:
karma-runner/karma-phantomjs-launcher#120
yarnpkg/yarn#1016

@datpham23
Copy link

+1
Can we upgrade phantomjs-prebuilt?

@slevy85
Copy link

slevy85 commented Jun 28, 2018

With npm the build seems to work anyway, but I have the same error using yarn.

With yarn we can force the build to use a newer version :
in package.json

  "resolutions": {
    "react-sketch/**/phantomjs-prebuilt": "2.1.8"
  }

The build now works good

@tbolis
Copy link
Owner

tbolis commented Nov 10, 2018

I'm preparing a new version where I removed phantom and I use jest, stay tuned!

@slevy85 awesome workaround

@tbolis tbolis closed this as completed Nov 10, 2018
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

4 participants