Home

Issue: 1180

TypeError: Nuxt is not a constructor

[issue link]

Started getting this error when I deployed our service on a new host.

This code fails with Node v8 and rc2

const Nuxt = require(‘nuxt’);
const config = require(’./nuxt.config.js’);
const nuxt = new Nuxt(config);

TypeError: Nuxt is not a constructor at Object.<anonymous> (/Users/Kalle/Dev/neovici/backend/Tools/render-node/test.js:3:14) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Function.Module.runMain (module.js:605:10) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:575:3

This question is available on Nuxt.js community (#c1041)