mjs files EcmaScript module
abstraktion-io opened this issue · comments
Can't fix the Can't reexport the named export 'xxx' from non EcmaScript module (only default export is available) even with vue.config.js to handle .mjs , any suggestion please ? :)
Try adding it to the Gridsome config instead:
gridsome.config.js
module.exports = {
// ...
configureWebpack: {
module: {
rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
}
]
}
},
// ...
}