Answers for "Can't reexport the named export 'BREAK' from non EcmaScript module (only default export is available) .mjs issue"

0

Can't reexport the named export 'BREAK' from non EcmaScript module (only default export is available) .mjs issue

const config = {
 configureWebpack: {
   resolve: {
     // .mjs needed for https://github.com/graphql/graphql-js/issues/1272
     extensions: ['*', '.mjs', '.js', '.vue', '.json', '.gql', '.graphql']
   },
   module: {
     rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272
       {
         test: /\.mjs$/,
         include: /node_modules/,
         type: 'javascript/auto'
       }
     ]
   }
 }
}

module.exports = config
Posted by: Guest on June-17-2021

Code answers related to "Can't reexport the named export 'BREAK' from non EcmaScript module (only default export is available) .mjs issue"

Browse Popular Code Answers by Language