Skip to content

Travis ci build failure due to @vue/babel-preset-app/index.js provided an invalid property of "default"  #4122

Closed
@oGsLP

Description

@oGsLP

Version

3.8.0

Reproduction link

https://github.com/oGsLP/latios

Environment info

System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  Binaries:
    Node: 8.11.4 - F:\NodeJS\node.EXE
    Yarn: 1.16.0 - F:\nvs\npm-global\yarn.CMD
    npm: 6.9.0 - F:\NodeJS\npm.CMD
  Browsers:
    Edge: 42.17134.1.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.0.0
    @vue/babel-preset-app:  3.8.0 (3.0.0-beta.11)
    @vue/babel-preset-jsx:  1.0.0
    @vue/babel-sugar-functional-vue:  1.0.0
    @vue/babel-sugar-inject-h:  1.0.0
    @vue/babel-sugar-v-model:  1.0.0
    @vue/babel-sugar-v-on:  1.0.0
    @vue/cli-overlay:  3.8.0
    @vue/cli-plugin-babel: ^3.8.0 => 3.8.0
    @vue/cli-plugin-eslint: ^3.8.0 => 3.8.0
    @vue/cli-plugin-unit-jest: ^3.8.0 => 3.8.0
    @vue/cli-service: ^3.8.0 => 3.8.0
    @vue/cli-shared-utils:  3.8.0
    @vue/component-compiler-utils:  2.6.0
    @vue/eslint-config-prettier: ^4.0.1 => 4.0.1
    @vue/preload-webpack-plugin:  1.1.0
    @vue/test-utils: 1.0.0-beta.29 => 1.0.0-beta.29
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    eslint-plugin-vue: ^5.2.2 => 5.2.2 (4.7.1)
    jest-serializer-vue:  2.0.2
    vue: ^2.6.10 => 2.6.10
    vue-eslint-parser:  5.0.0 (2.0.3)
    vue-highlightjs: ^1.3.3 => 1.3.3
    vue-hot-reload-api:  2.3.3
    vue-jest:  3.0.4
    vue-loader:  15.7.0
    vue-router:  3.0.6
    vue-server-renderer:  2.6.10
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.10 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
    vuepress: ^0.14.11 => 0.14.11
    vuepress-html-webpack-plugin:  3.2.0
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

npm install
npm test

What is expected?

When I run npm test on my pc , everything works well. But on Travis CI it failed, it seemed to be related to @vue/babel-preset-app, but I don't know how to fix it. And I can't find similar problems online.

What is actually happening?

> vue-cli-service test:unit
 FAIL  src/components/button/button.spec.js
  ● Test suite failed to run
    Plugin 1 specified in "/home/travis/build/oGsLP/latios/node_modules/@vue/babel-preset-app/index.js" provided an invalid property of "default" (While processing preset: "/home/travis/build/oGsLP/latios/node_modules/@vue/babel-preset-app/index.js")
      at Plugin.init (node_modules/jest-config/node_modules/babel-core/lib/transformation/plugin.js:131:13)
          at Array.map (<anonymous>)
          at Array.map (<anonymous>)
 FAIL  tests/unit/test.spec.js
  ● Test suite failed to run
    Plugin 1 specified in "/home/travis/build/oGsLP/latios/node_modules/@vue/babel-preset-app/index.js" provided an invalid property of "default" (While processing preset: "/home/travis/build/oGsLP/latios/node_modules/@vue/babel-preset-app/index.js")
      at Plugin.init (node_modules/jest-config/node_modules/babel-core/lib/transformation/plugin.js:131:13)
          at Array.map (<anonymous>)
          at Array.map (<anonymous>)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions