Static GitHub Issues

[2062] module treated as esModule. Make commonjs?

prev: How to implement redirection to a page that the user had previously, if the page to which he passed does not exist
next: Stop nuxt generate if there is an error in render

Hi,

Im importing a module that is treated as an _esModule. I need it to be treated as a commonjs module. Anyway I can fix this in nuxt?

Object.defineProperty(exports, "__esModule", {
  value: true
});
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1829">#c1829</a>)</em></sub></div>