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

SSR example not working? #1576

Open
kohlerm opened this issue Apr 10, 2020 · 0 comments
Open

SSR example not working? #1576

kohlerm opened this issue Apr 10, 2020 · 0 comments

Comments

@kohlerm
Copy link

kohlerm commented Apr 10, 2020

Bug report

Delete this section if this is a feature request.

  • Skate version: 5.2.4 (checked out git repo)
  • Affected browsers (and versions): Chrome

I'm trying to get the SSR example running at skatejs/packages/ssr/example
I ran npm install then yarn start

when open the web page I get :

auditfor details  kohlerm  …  packages  ssr  example  yarn start yarn run v1.10.1 $ node . Server running at: http://localhost:8000 (node:71662) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'dispatchEvent' of undefined at Function.trigger (/home/kohlerm/skatejs/packages/ssr/register/dom/MutationObserver.js:100:16) at ElementProto.setAttribute (/home/kohlerm/skatejs/packages/ssr/register/dom/Element.js:97:20) at /home/kohlerm/skatejs/packages/ssr/register/dom/Element.js:43:47 at Array.forEach (<anonymous>) at translateParsed (/home/kohlerm/skatejs/packages/ssr/register/dom/Element.js:43:13) at /home/kohlerm/skatejs/packages/ssr/register/dom/Element.js:48:46 at Array.forEach (<anonymous>) at translateParsed (/home/kohlerm/skatejs/packages/ssr/register/dom/Element.js:48:16) at /home/kohlerm/skatejs/packages/ssr/register/dom/Element.js:48:46 at Array.forEach (<anonymous>) (node:71662) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:71662) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I tried with different node versions currently at v12.16.2

any hint what went wrong would be appreciated.

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