carlo icon indicating copy to clipboard operation
carlo copied to clipboard

Problem loading next.js statically exported site

Open ericbets opened this issue 5 years ago • 0 comments

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
});

ericbets avatar May 29 '19 09:05 ericbets