New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximum call stack size exceeded error when running new Vue 3 app #6994
Comments
YESSS...... this was driving me insane all morning. I'm so glad it's not just me |
Seems to be getting stuck in an infinite recursion in Call stack(/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:230) build (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:206) (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:230) build (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:206) (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:230) build (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:206) (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:230) build (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:206) (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:230) build (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:206) (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:230) build (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:206) buildSourceMapTree (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:198) remapping (/Users/tony/src/tmp/test-vue-app123/node_modules/@ampproject/remapping/dist/remapping.umd.js:273) mergeSourceMap (/Users/tony/src/tmp/test-vue-app123/node_modules/@babel/core/lib/transformation/file/merge-map.js:19) generateCode (/Users/tony/src/tmp/test-vue-app123/node_modules/@babel/core/lib/transformation/file/generate.js:75) run (/Users/tony/src/tmp/test-vue-app123/node_modules/@babel/core/lib/transformation/index.js:55) transform (/Users/tony/src/tmp/test-vue-app123/node_modules/@babel/core/lib/transform.js:25) step (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:261) (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:273) async.call.result.err.err (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:223) (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:189) (/Users/tony/src/tmp/test-vue-app123/node_modules/@babel/core/lib/gensync-utils/async.js:74) (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:113) step (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:287) (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:273) async.call.result.err.err (/Users/tony/src/tmp/test-vue-app123/node_modules/gensync/index.js:223) A workaround is to configure Webpack's 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',
},
} |
@tony19 would love to use your workaround but I'm getting an error: ERROR TypeError: defineConfig is not a function I'm using SOLVED: I took out the call to // vue.config.js
module.exports = {
configureWebpack: {
devtool: 'eval-cheap-source-map',
},
}; |
I'm getting this error while running build as well, and am currently working around it by disabling source maps using productionSourceMap: false |
I too am having the same issue, same with a co-worker |
This was caused by babel/babel#14273. Fixed in Babel v7.17.4. |
I just deleted my lock files and node_modules and it's working again! |
Closing as it's been fixed in babel. |
After updating my vue 2 app cli dependecies from 4.5.18 to 4.5.19 I got the error |
Unit and integration tests have been failing due to failed logging of `Error` objects. These were creating an issue where `mocha` was not properly returning right exit codes, leading to test pipelines incorrectly passing despite test failures. - Fix runtime behavior of failing to retrieve error stacks. - Add tests for error handling. - Add more robust custom error handling. Related issues: babel/babel#14273, vuejs/vue-cli#6994.
Unit and integration tests have been failing due to failed logging of `Error` objects. These were creating an issue where `mocha` was not properly returning right exit codes, leading to test pipelines incorrectly passing despite test failures. - Fix runtime behavior of failing to retrieve error stacks. - Add tests for error handling. - Add more robust custom error handling. Related issues: babel/babel#14273, vuejs/vue-cli#6994.
Version
4.5.15
Reproduction link
github.com
Environment info
Steps to reproduce
See error
ERROR Failed to compile with 1 error 10:23:21 AM
error in ./src/App.vue?vue&type=script&lang=js
Syntax Error: RangeError: ....App.vue: Maximum call stack size exceeded
at Array.map ()
at Array.map ()
at Array.map ()
at Array.map ()
at Array.map ()
@ ./src/App.vue?vue&type=script&lang=js 1:0-262 1:0-262 1:263-514 1:263-514
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.1.128:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
What is expected?
No errors when running
What is actually happening?
Can't compile, app won't run.
The text was updated successfully, but these errors were encountered: