Closed tony19 closed 2 years ago
A workaround is to configure Webpack's devtool
to something other than eval
or eval-source-map
(e.g., you can pick eval-cheap-source-map
):
Vue CLI 5.x:
// vue.config.js
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
configureWebpack: {
devtool: 'eval-cheap-source-map',
},
})
Vue CLI 4.x:
// vue.config.js
module.exports = {
configureWebpack: {
devtool: 'eval-cheap-source-map',
},
}
Hi @tony19: This is fixed by https://github.com/babel/babel/pull/14274, and released in Babel v7.17.4. Sorry for the breakage!
Webpack-based projects (including Vue CLI scaffolded projects, and Quasar projects) are failing with
Maximum call stack size exceeded
, starting frombuildSourceMapTree()
and infinitely recursing inbuild()
. This seems to occur when building the source map.Steps to reproduce:
Scaffold a new Vue CLI project with:
Change into the source directory with:
Start the webpack devserver:
Observe the error in the console.
Call stack
Environment
@ampproject/remapping
-2.1.1