Skip to content

Syntax breakage in Proxy.js #1641

@thomasbalsloev

Description

@thomasbalsloev

Version

6.0.0-beta.21

Browser and OS info

Windows 10

Steps to reproduce

Vue project which includes devtool-api 6.0.0-beta.21.
Run "vue-cli-service build" to build your project.
See exception:

ERROR  Failed to compile with 1 error2:55:47 PM
14:55:47   
14:55:47    error  in ./node_modules/@vue/devtools-api/lib/esm/proxy.js
14:55:47   
14:55:47   Module parse failed: Unexpected token (3:10)
14:55:47   You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
14:55:47   | import { HOOK_PLUGIN_SETTINGS_SET } from './const';
14:55:47   | export class ApiProxy {
14:55:47   >     target;
14:55:47   |     targetQueue;
14:55:47   |     proxiedTarget;
14:55:47   
14:55:47    @ ./node_modules/@vue/devtools-api/lib/esm/index.js 3:0-35 14:40-48
14:55:47    @ ./node_modules/vue-router/dist/vue-router.esm-bundler.js
14:55:47    @ ./Mouseflow.App.Web/js/vue_input/router.js
14:55:47    @ ./Mouseflow.App.Web/js/vue_input/main.js
14:55:47    @ multi ./Mouseflow.App.Web/js/vue_input/main.js

What is expected?

class ApiProxy {
    constructor(plugin, hook) {
        this.target = null;
        this.targetQueue = [];
        this.onQueue = [];
        this.plugin = plugin;
        this.hook = hook;
...

What is actually happening?

class ApiProxy {
    target;
    targetQueue;
    proxiedTarget;
    onQueue;
    proxiedOn;
    plugin;
    hook;
    fallbacks;
    constructor(plugin, hook) {
        this.target = null;
        this.targetQueue = [];
        this.onQueue = [];
        this.plugin = plugin;
        this.hook = hook;
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions