Skip to content
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

Electron builder with vue-cli-service doesn't properly build with es2020 syntax #5853

Closed
AydanGaite opened this issue May 3, 2021 · 1 comment

Comments

@AydanGaite
Copy link

  • Version: 22.10.5
  • Electron Version: ^11.0.0
  • Electron Type (current, beta, nightly): current
  • Target: Darwin

When I attempt to build my electron app using any es2020 related syntax, the builder throws an exception. In this example I used optional chaining.

Module parse failed: Unexpected token (10:21)
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/ts-loader/index.js
 * ./node_modules/cache-loader/dist/cjs.js
 * ./node_modules/vue-loader-v16/dist/index.js
You may need an additional loader to handle the result of these loaders.
|       test: ''
|     };
>     console.log(test?.test);
|   },
| 

 @ ./src/App.vue?vue&type=script&lang=ts 1:0-350 1:0-350 1:351-690 1:351-690
 @ ./src/App.vue
 @ ./src/main.ts
 @ multi ./src/main.ts
@AydanGaite
Copy link
Author

vuejs/vue-cli#6449

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

No branches or pull requests

1 participant