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

Threw Unexpected token exception when run with docker-compose #14

Open
thangchung opened this issue Apr 28, 2021 · 0 comments
Open

Threw Unexpected token exception when run with docker-compose #14

thangchung opened this issue Apr 28, 2021 · 0 comments

Comments

@thangchung
Copy link

thangchung commented Apr 28, 2021

Hi team,

I have cloned this git repo into my local machine and tried to run it on my Windows 10 box as below

$ docker-compose -f docker-compose.yml -f docker-compose.override.yml build

It built successfully with no error. Then the next step, I put another command to run it as the following

$ docker-compose -f docker-compose.yml -f docker-compose.override.yml up rendertron

In this stage, I have got the exception Unexpected token. The full stack trace information as below

# docker-compose -f docker-compose.yml -f docker-compose.override.yml up rendertron
Docker Compose is now in the Docker CLI, try `docker compose up`

Starting aspnetcorerendertron_rendertron_1 ... done
Attaching to aspnetcorerendertron_rendertron_1
rendertron_1      |
rendertron_1      | > rendertron@3.1.0 start /app
rendertron_1      | > node build/rendertron.js
rendertron_1      |
rendertron_1      | /app/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:707
rendertron_1      |         catch {
rendertron_1      |               ^
rendertron_1      |
rendertron_1      | SyntaxError: Unexpected token {
rendertron_1      |     at createScript (vm.js:80:10)
rendertron_1      |     at Object.runInThisContext (vm.js:139:10)
rendertron_1      |     at Module._compile (module.js:617:28)
rendertron_1      |     at Object.Module._extensions..js (module.js:664:10)
rendertron_1      |     at Module.load (module.js:566:32)
rendertron_1      |     at tryModuleLoad (module.js:506:12)
rendertron_1      |     at Function.Module._load (module.js:498:3)
rendertron_1      |     at Module.require (module.js:597:17)
rendertron_1      |     at require (internal/module.js:11:18)
rendertron_1      |     at Object.<anonymous> (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/Target.js:19:19)
rendertron_1      | npm ERR! code ELIFECYCLE
rendertron_1      | npm ERR! errno 1
rendertron_1      | npm ERR! rendertron@3.1.0 start: `node build/rendertron.js`
rendertron_1      | npm ERR! Exit status 1
rendertron_1      | npm ERR!
rendertron_1      | npm ERR! Failed at the rendertron@3.1.0 start script.
rendertron_1      | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
rendertron_1      |
rendertron_1      | npm ERR! A complete log of this run can be found in:
rendertron_1      | npm ERR!     /root/.npm/_logs/2021-04-28T04_17_36_835Z-debug.log
aspnetcorerendertron_rendertron_1 exited with code 1

Any guys can shred the light on how to fix this issue?

I have seen the repo is quite old, the last commit was almost 3 years ago. Do we have to maintain it or we have any other forks to maintain this cool project?

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

1 participant