GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.31k stars 309 forks source link

Problem loading next.js statically exported site #154

Open ericbets opened 5 years ago

ericbets commented 5 years ago

Carlo won't load a next.js site. This is error message in the console:

Failed to load resource: net::ERR_BLOCKED_BY_CLIENT /_next/static/4sXxrLKhlqKMGukbOt5t1/pages/_app.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT /_next/static/runtime/webpack-a79426b5e11f0ba5879d.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT /_next/static/runtime/main-541f01c65744a5c2c60b.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT /_next/static/chunks/commons.5ab99a3358d0747ad597.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

This is the code that invoked carlo:

const carlo = require('carlo');

carlo.launch().then(async app => {
  app.on('exit', () => process.exit());

  app.serveOrigin('http://localhost:8080'); 
  await app.load('/');
 //index.html doesn't work either
});