Skip to content

Failed to compile with 1 error with vue-cli for Vue 2 #658

@W0nderMuffin

Description

@W0nderMuffin

Hello there,

since rapidoc version 9.1.4 I'm getting the following error while building with vue-cli for vue 2:

> vue-cli-service build --target wc --name my-webcomponent --mode production


⠧  Building for production as web component...

 ERROR  Failed to compile with 1 error                                                                                                                                                                     5:24:29 PM

 error  in ./node_modules/rapidoc/dist/rapidoc-min.js

Module parse failed: Unexpected token (2:270731)
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
(Source code omitted for this binary file)

My env:

    "rapidoc": "9.1.4",
    "vue": "^2.6.14",
    "vue-i18n": "^8.27.0",
    "vue-json-viewer": "^2.2.21",
    "vue-router": "^3.5.3",
    "vuex": "^3.6.2",
    "vuex-persist": "^3.1.3",
     [...]
    "@vue/cli": "^4.5.15",
    "@vue/cli-plugin-babel": "^4.5.15",
    "@vue/cli-plugin-unit-jest": "^4.5.15",
    "@vue/cli-plugin-vuex": "^4.5.15",
    "@vue/cli-service": "^4.5.15",

Any ideas? 9.1.3 works without compile errors 🤔

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