You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Built project, possibly without transpiling supported code, at least for the modern build.
What is actually happening?
C:\Web\Projects\vue-cli-modern> yarn vue-cli-service build --modern --report-json
yarn run v1.22.4
$ C:\Web\Projects\vue-cli-modern\node_modules\.bin\vue-cli-service build --modern --report-json
| Building legacy bundle for production...@babel/preset-env: `DEBUG` option
Using targets:
{
"chrome": "80"
}
Using modules transform: false
Using plugins:
syntax-numeric-separator { "chrome":"80" }
proposal-logical-assignment-operators { "chrome":"80" }
syntax-nullish-coalescing-operator { "chrome":"80" }
syntax-optional-chaining { "chrome":"80" }
syntax-json-strings { "chrome":"80" }
syntax-optional-catch-binding { "chrome":"80" }
syntax-async-generators { "chrome":"80" }
syntax-object-rest-spread { "chrome":"80" }
syntax-dynamic-import { "chrome":"80" }
syntax-export-namespace-from { "chrome":"80" }
syntax-top-level-await { "chrome":"80" }
Using polyfills with `usage` option:
[C:\Web\Projects\vue-cli-modern\src\main.js] Based on your code and targets, core-js polyfills were not added.
/ Building legacy bundle for production...
[C:\Web\Projects\vue-cli-modern\src\registerServiceWorker.js] Based on your code and targets, core-js polyfills were not added.
[C:\Web\Projects\vue-cli-modern\src\router\index.js] Based on your code and targets, core-js polyfills were not added.
| Building legacy bundle for production...
[C:\Web\Projects\vue-cli-modern\src\views\Home.vue] Based on your code and targets, core-js polyfills were not added.
/ Building legacy bundle for production...
[C:\Web\Projects\vue-cli-modern\src\components\HelloWorld.vue] Based on your code and targets, core-js polyfills were not added.
- Building legacy bundle for production...@babel/preset-env: `DEBUG` option
Using targets:
{
"chrome": "80"
}
Using modules transform: false
Using plugins:
syntax-numeric-separator { "chrome":"80" }
proposal-logical-assignment-operators { "chrome":"80" }
syntax-nullish-coalescing-operator { "chrome":"80" }
syntax-optional-chaining { "chrome":"80" }
syntax-json-strings { "chrome":"80" }
syntax-optional-catch-binding { "chrome":"80" }
syntax-async-generators { "chrome":"80" }
syntax-object-rest-spread { "chrome":"80" }
syntax-dynamic-import { "chrome":"80" }
syntax-export-namespace-from { "chrome":"80" }
syntax-top-level-await { "chrome":"80" }
Using polyfills with `usage` option:
[C:\Web\Projects\vue-cli-modern\src\store\index.js] Based on your code and targets, core-js polyfills were not added.
/ Building legacy bundle for production...
ERROR Failed to compile with 1 errors 18:51:22
error in ./src/components/HelloWorld.vue?vue&type=script&lang=js&
Module parse failed: Unexpected token (41:22)
File was processed with these loaders:
* ./node_modules/cache-loader/dist/cjs.js
* ./node_modules/thread-loader/dist/cjs.js
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/cache-loader/dist/cjs.js
* ./node_modules/vue-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
| created() {
> console.log(null ?? "waffles");
| }
|
@ ./src/components/HelloWorld.vue?vue&type=script&lang=js& 1:0-324 1:340-343 1:345-666 1:345-666
@ ./src/components/HelloWorld.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=js&
@ ./src/views/Home.vue?vue&type=script&lang=js&
@ ./src/views/Home.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi ./src/main.js
ERROR Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered:
Version
4.5.6
Environment info
Steps to reproduce
To be honest I am not sure this is an issue with vue cli, but I have no idea WHERE the issue is. I would appreciate some guidance in the matter.
Create a project with the following preset:
Attempt to use some new ES feature, e.g.
console.log(null ?? "foo")
HelloWorld.vue
Set the browser target to something which supports that feature like
chrome 80
.Build fails.
What is expected?
Built project, possibly without transpiling supported code, at least for the modern build.
What is actually happening?
The text was updated successfully, but these errors were encountered: