Skip to content

Recursive call from typeof in output bundle #3741

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

Closed
savoygu opened this issue Apr 1, 2019 · 6 comments · Fixed by #3742
Closed

Recursive call from typeof in output bundle #3741

savoygu opened this issue Apr 1, 2019 · 6 comments · Fixed by #3742

Comments

@savoygu
Copy link

savoygu commented Apr 1, 2019

Version

3.5.4

Environment info

System:
    OS: macOS 10.14.3
    CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
  Binaries:
    Node: 10.15.1 - /usr/local/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 73.0.3683.86
    Firefox: Not Found
    Safari: 12.0.3
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0-beta.3
    @vue/babel-plugin-transform-vue-jsx:  1.0.0-beta.3
    @vue/babel-preset-app:  3.5.4
    @vue/babel-preset-jsx:  1.0.0-beta.3
    @vue/babel-sugar-functional-vue:  1.0.0-beta.3
    @vue/babel-sugar-inject-h:  1.0.0-beta.3
    @vue/babel-sugar-v-model:  1.0.0-beta.3
    @vue/babel-sugar-v-on:  1.0.0-beta.3
    @vue/cli-overlay:  3.5.1
    @vue/cli-plugin-babel: ^3.2.0 => 3.5.4
    @vue/cli-plugin-eslint: ^3.2.1 => 3.5.1
    @vue/cli-service: ^3.3.0 => 3.5.3
    @vue/cli-shared-utils:  3.5.1
    @vue/component-compiler-utils: ^2.5.0 => 2.6.0
    @vue/eslint-config-standard: ^4.0.0 => 4.0.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    eslint-plugin-vue: ^5.0.0-0 => 5.2.2
    vue: ^2.5.17 => 2.6.10
    vue-echarts-v3: ^1.0.19 => 1.0.19
    vue-eslint-parser:  5.0.0
    vue-hot-reload-api:  2.3.3
    vue-loader: ^15.4.2 => 15.7.0
    vue-router: ^3.0.1 => 3.0.2
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.5.17 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
    vuex: ^3.0.1 => 3.1.0
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

when you use js typeof keyword, you will get this

What is expected?

no error!

What is actually happening?

RangeError: Maximum call stack size exceeded
    at _typeof2 (typeof.js?53ca:1)
    at _typeof (typeof.js?53ca:4)
    at _typeof2 (typeof.js?53ca:1)
    at _typeof (typeof.js?53ca:4)
    at _typeof2 (typeof.js?53ca:1)
    at _typeof (typeof.js?53ca:4)
    at _typeof2 (typeof.js?53ca:1)
    at _typeof (typeof.js?53ca:4)
    at _typeof2 (typeof.js?53ca:1)
    at _typeof (typeof.js?53ca:4)
@haoqunjiang
Copy link
Member

Can you provide a reproduction? I can suspect some scenarios where typeof may be troublesome but right now I can't reproduce it on my machine.

@haoqunjiang haoqunjiang added needs reproduction This issue is missing a minimal runnable reproduction, provided by the author and removed bug priority: now labels Apr 1, 2019
@haoqunjiang
Copy link
Member

Ah I got it.

@haoqunjiang haoqunjiang added bug priority: now and removed needs reproduction This issue is missing a minimal runnable reproduction, provided by the author labels Apr 1, 2019
@msalahz
Copy link

msalahz commented Apr 1, 2019

any updates ?

@lizux
Copy link

lizux commented Apr 1, 2019

The same issue here.
It doesn't work on v3.5.4(@vue/cli-plugin-babel)
But it works with v3.5.3

@msalahz
Copy link

msalahz commented Apr 1, 2019

Just conformed @lizux's suggestion to use 3.5.3, and this worked for me

@savoygu
Copy link
Author

savoygu commented Apr 1, 2019

https://github.com/savoygu/test-typeof

the project is generated using the version @vue/cli3.5.4, when you run, just open browser developer tools will see the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants