enso-ui / tables

Tables
MIT License
11 stars 10 forks source link

Npm rund dev error #24

Closed Schwenniii closed 4 years ago

Schwenniii commented 4 years ago

i update from "@enso-ui/directives": "^1.0.15", "@enso-ui/dropdown": "1.1.10", "@enso-ui/loader": "1.0.13", "@enso-ui/modal": "1.0.18", "@enso-ui/tables": "1.4.23", "@enso-ui/toastr": "1.0.33", "bulma": "^0.7.5",

to the last Versions "@enso-ui/directives": "^1.0.16", "@enso-ui/dropdown": "^2.0.1", "@enso-ui/loader": "^2.0.0", "@enso-ui/modal": "^2.0.1", "@enso-ui/tables": "^2.0.0", "@enso-ui/toastr": "^2.1.0", "bulma": "^0.7.5",

After Update npm run dev returns to errono 2

Actual behavior

./node_modules/@enso-ui/tables/src/bulma/parts/top/Filters.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./node_modules/@enso-ui/tables/src/bulma/parts/top/Filters.vue?vue&type=script&l ang=js&) 82:47 Module parse failed: Unexpected token (82:47) File was processed with these loaders:

raftx24 commented 4 years ago

Hi, we used Optional chaining, you need to config your babel.

henryejemuta commented 4 years ago

@raftx24 I'm currently stuck with the same error I have included:

mix.babelConfig({
    "presets": [
        "@babel/preset-env"
    ],
    "plugins": []
});

to webpack.mix.js configuration file, but still the same error... can you point me to a resource or help out with the babel configuration.

@Schwenniii how did you resolve this?