Skip to content

Getting a cryptic error while trying to make it work for @ionic/vue components. #141

@markomarkovic

Description

@markomarkovic

Here's a repository with the minimal example: https://github.com/markomarkovic/temporary-ionic-vue-project

Ionic uses vue-cli-service, so I've configured the plugin in the vue.config.js and it gets executed and reads the components as expected, but then it dies with a cryptic error that I don't get at all.

❯ yarn run serve
yarn run v1.22.5
$ vue-cli-service serve
INFO Starting development server...
40% building 43/46 modules 3 active /tmp/tmp.lfuXBTXRpL/android-app/node_modules/events/events.js######### NAME TO IMPORT IonRouterOutlet
######### NAME TO IMPORT IonApp
40% building 85/107 modules 22 active ...-app/node_modules/@ionic/core/dist/esm-es5/hardware-back-button-4a6b37fb.js######### NAME TO IMPORT IonTitle
######### NAME TO IMPORT IonToolbar
######### NAME TO IMPORT IonHeader
######### NAME TO IMPORT IonContent
######### NAME TO IMPORT IonPage
98% after emitting CopyPlugin

ERROR Failed to compile with 1 error 8:23:58 PM

error in js/app.js

/tmp/tmp.lfuXBTXRpL/android-app/node_modules/unplugin/dist/webpack/loaders/transform.js??ref--38-0!/tmp/tmp.lfuXBTXRpL/android-app/node_modules/unplugin/dist/webpack/loaders/transform.js??ref--38-0!/tmp/tmp.lfuXBTXRpL/android-app/node_modules/cache-loader/dist/cjs.js??ref--12-0!/tmp/tmp.lfuXBTXRpL/android-app/node_modules/babel-loader/lib/index.js!/tmp/tmp.lfuXBTXRpL/android-app/node_modules/vue-loader-v16/dist/templateLoader.js??ref--6!/tmp/tmp.lfuXBTXRpL/android-app/node_modules/cache-loader/dist/cjs.js??ref--0-0!/tmp/tmp.lfuXBTXRpL/android-app/node_modules/vue-loader-v16/dist/index.js??ref--0-1!/tmp/tmp.lfuXBTXRpL/android-app/src/App.vue?vue&type=template&id=7ba5bd90
Cannot read property 'startsWith' of null

No issues found.

Any help with this is welcome.

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