-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
Version
4.3.1
Reproduction link
https://github.com/gdmoore/vue-cli-babel-err
Environment info
System:
OS: Windows 10 10.0.18363
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 12.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
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.3.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.3.1
@vue/cli-plugin-babel: ~4.3.1 => 4.3.1
@vue/cli-plugin-eslint: ~4.3.1 => 4.3.1
@vue/cli-plugin-router: ~4.3.1 => 4.3.1
@vue/cli-plugin-vuex: ~4.3.1 => 4.3.1
@vue/cli-service: ~4.3.1 => 4.3.1
@vue/cli-shared-utils: 4.3.1
@vue/component-compiler-utils: 3.1.2
@vue/eslint-config-prettier: ^6.0.0 => 6.0.0
@vue/preload-webpack-plugin: 1.1.1
@vue/test-utils: 1.0.0-beta.31 => 1.0.0-beta.31
@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.0.0
vue-hot-reload-api: 2.3.4
vue-loader: 15.9.1
vue-router: ^3.1.6 => 3.1.6
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.11 => 2.6.11
vue-template-es2015-compiler: 1.9.1
vuex: ^3.1.3 => 3.1.3
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
npm install
npm run build
<error "Unexpected console statement no-console">
npm run build
<success>
What is expected?
Eslint configured for no-console
but babel configured with transform-remove-console
, so the console statement should not cause a build error.
Build results should be consistent on every build.
What is actually happening?
Build fails on first attempt, succeeds on the second, with no code changes.
Any changes to main.js
(even trivial ones such as adding or removing comments) will cause the build to break and require two builds again for success.
This is a minified case from my actual project, which was generated using vue create
and choosing Babel and ESLint.
I suspect this is a bug with caching or in determining the order to run eslint and babel.
arthabus, OddDev, activenode, goncalofialho, jhvarandas and 10 moreOddDev and rashadrivera
Metadata
Metadata
Assignees
Labels
No labels