Questions tagged [v8js]

V8Js is a PHP extension for Google's V8 JavaScript engine.

v8js project at Github

26 questions
5
votes
0 answers

"V8Js::compileString():1812: ReferenceError: document is not defined" Laravel VueJS & V8Js TypeScript

I am attempting to implement SSR with VueJS, VueRouter in Laravel using V8Js, and I keep coming up with this error: V8JsScriptException V8Js::compileString():1812: ReferenceError: document is not defined import App from './app' import Vue from…
Eddy Ekofo
  • 541
  • 6
  • 13
3
votes
0 answers

Can not install v8js extension for SSR using Laradock

I am trying to manage server side rendering using react-laravel which requires v8js extension.My working environment is a laradock. I have enabled V8JS installation in laradocks .env file: WORKSPACE_INSTALL_V8JS=true I have rebuild my workspace and…
Jan Ciołek
  • 1,796
  • 3
  • 17
  • 32
2
votes
0 answers

make: *** [Makefile:223: v8js_array_access.lo] Error 1

I followed this link to compile v8 and v8js but when I executed make to compile v8js it showed this log and this error: /bin/bash /tmp/v8js/libtool --mode=compile g++ -I. -I/tmp/v8js -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js…
Mohamed Ali
  • 31
  • 1
  • 7
2
votes
3 answers

PHP Docker install pecl V8JS (Debian Buster)

I tried to install V8JS with this Dockerfile FROM php:7.3-cli-buster RUN apt-get update -y --fix-missing && apt-get upgrade -y; # Install v8js RUN apt-get install -y libv8-dev RUN pecl install v8js RUN docker-php-ext-enable v8js but I got a…
Jimmix
  • 5,644
  • 6
  • 44
  • 71
2
votes
2 answers

PHP and React on Server side render

I am still new programmer but I have an idea about project. I think about architecture for now. So my question is "Which is the best way to use react on server side render in PHP backend". I have researched and I`ve found two decision about that.…
Davosss
  • 61
  • 1
  • 7
2
votes
1 answer

V8JS Timezone Test Fails

I'm trying to install V8JS but a timezone test is failing. This test: https://github.com/phpv8/v8js/blob/php7/tests/timezones.phpt I followed these instructions https://github.com/phpv8/v8js/blob/php7/README.Linux.md The issue the test has is that…
gempir
  • 1,791
  • 4
  • 22
  • 46
2
votes
0 answers

Install v8js for php on ubuntu

How I can install v8js for ubuntu 12.04? I saw following question: Installing PHPv8js on Ubuntu When I use compiled version v8js-0.1.3 for php 5.4.23 I got error: /usr/lib/php5/20100525# php -m | grep v8js PHP Warning: PHP Startup: Unable to load…
dguard
  • 109
  • 2
  • 5
1
vote
0 answers

How to install v8js macOS 10.13.6 - Permission denied make: *** [install-modules] Error 1

I'm trying to installa v8js in my macOS HighSierra 10.13.6 I'm following this guide on github but when I try to install the extension using make install I get this error in console $ make install Installing shared extensions: …
newbiedev
  • 2,607
  • 3
  • 17
  • 65
1
vote
1 answer

Problem when rendering javascript with PHP V8JS

I have this code to render a javascript code with PHP and V8JS but it doesn't work. Does anyone know where the problem is? executeString( $code…
Bruno Andrade
  • 565
  • 1
  • 3
  • 17
1
vote
1 answer

Why do errors in Vue router beforeEach throw no exception when running in V8Js?

I have a Laravel / Vue app using SSR so have JavaScript running server side and client side. I had a bug in my code where I was checking user.id when the user object was null. If this had been running client side I would have seen the error in the…
Felix Eve
  • 3,811
  • 3
  • 40
  • 50
1
vote
0 answers

What are the commands to enable V8Js PHP extension on linux vagrant?

How to add V8js PHP extension on linux, so that I could use reactjs in PHP app? In one video tutorial, 4 steps were mentioned Build and install v8 Build and install php-v8js Enable the v8js extension in php extension=v8js.so in php.ini Like in…
dhiraj900
  • 17
  • 6
1
vote
0 answers

Install V8JS on Mac Catalina

I've been trying to install php v8js on my Catalina for a week now. Can you help please? I tried all kind of command line steps. No luck. php -v PHP 7.4.0 (cli) (built: Nov 29 2019 16:18:44) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0,…
Hakeem.D
  • 126
  • 3
  • 12
1
vote
1 answer

Javascript: Using function properties as "static" variables and optimization

One way to get "static" variables in a function (like the "static" keyword in C) in Javascript is to assign custom properties to the function object itself. A few years ago, this caused problems with optimization in eg. V8 because when the function…
Seven Systems
  • 127
  • 3
  • 13
1
vote
1 answer

VueJS SSR V8JS Symfonybug Jquery

I have install VueJS / Symfony and V8JS for SSR (SEO frendly) Install V8JS it's ok but i have a conflit with Jquery V8Js::compileString():2246: TypeError: Cannot read property 'jquery' of undefined I leave you some of the important code. I use…
1
2