-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
vue cli4 cannot be configured according to karma, but cli3 can succeed #5525
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
Comments
Thanks for submitting this issue. Due to our limited time, we have to ask you to include a reproduction link to a minimal full reproduction of your problem (for example in a GitHub repository) so we can find what is causing the issue. Thank you for your understanding. |
already added |
Please add a The reason: dfe3987 Karma can't handle split chunks.
It is a good practice to always set Actually, with |
config worked for me. |
According to the [babel documentation](https://babeljs.io/docs/en/options#envname), `NODE_ENV` can also be recognized when loading configurations, and `NODE_ENV` has better interoperability in the ecosystem. Here's a use case that `NODE_ENV` works well while `BABEL_ENV` might cause confusion: vuejs/vue-cli#5525 (comment)
According to the [babel documentation](https://babeljs.io/docs/en/options#envname), `NODE_ENV` can also be recognized when loading configurations, and `NODE_ENV` has better interoperability in the ecosystem. Here's a use case that `NODE_ENV` works well while `BABEL_ENV` might cause confusion: vuejs/vue-cli#5525 (comment)
Version
4.1.2
Reproduction link
https://github.com/heyi-let/vue-cli4_unit_karma
Environment info
System:
OS: macOS Mojave 10.14.5
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Binaries:
Node: 11.14.0 - ~/.nvm/versions/node/v11.14.0/bin/node
Yarn: Not Found
npm: 6.7.0 - ~/.nvm/versions/node/v11.14.0/bin/npm
Browsers:
Chrome: 81.0.4044.138
Firefox: 71.0
Safari: 12.1.1
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.1.2
@vue/babel-preset-app: 4.4.1
@vue/babel-preset-jsx: 1.1.2
@vue/babel-sugar-functional-vue: 1.1.2
@vue/babel-sugar-inject-h: 1.1.2
@vue/babel-sugar-v-model: 1.1.2
@vue/babel-sugar-v-on: 1.1.2
@vue/cli-overlay: 4.4.1
@vue/cli-plugin-babel: ^4.4.0 => 4.4.1
@vue/cli-plugin-e2e-cypress: ^4.4.0 => 4.4.1
@vue/cli-plugin-eslint: ^4.4.0 => 4.4.1
@vue/cli-plugin-router: ^4.4.0 => 4.4.1
@vue/cli-plugin-unit-mocha: ^4.4.0 => 4.4.1
@vue/cli-plugin-vuex: ^4.4.0 => 4.4.1
@vue/cli-service: ^4.4.0 => 4.4.1
@vue/cli-shared-utils: 4.4.1
@vue/component-compiler-utils: 3.1.2
@vue/eslint-config-standard: ^5.1.2 => 5.1.2
@vue/preload-webpack-plugin: 1.1.1
@vue/test-utils: ^1.0.3 => 1.0.3
@vue/web-component-wrapper: 1.2.0
eslint-plugin-vue: ^6.2.2 => 6.2.2
vue: ^2.6.11 => 2.6.11
vue-eslint-parser: 7.1.0
vue-hot-reload-api: 2.3.4
vue-loader: 15.9.2
vue-router: ^3.2.0 => 3.2.0
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.11 => 2.6.11
vue-template-es2015-compiler: 1.9.1
vuex: ^3.4.0 => 3.4.0
npmGlobalPackages:
@vue/cli: 4.1.2
Steps to reproduce
git clone https://github.com/heyi-let/vue-cli4_unit_karma
The test:unit can be executed successfully in the cli-service4 branch.
But will fail in the cli-service4 branch
They have different @vue/cli-service versions,everything else is the same.
What is expected?
Can successfully run when using cli4
What is actually happening?
failed
The text was updated successfully, but these errors were encountered: