vue-demi icon indicating copy to clipboard operation
vue-demi copied to clipboard

Issue with Karma and Chromium headless test, install is not a function

Open victorgarciaesgi opened this issue 3 years ago • 1 comments

Reproduction: https://github.com/victorgarciaesgi/vue-chart-3 Run yarn test

Before upgrading the my dependencies, my tests were working great. Now I get an error like this every time

image

Uncaught TypeError: (0 , vue_demi_1.install) is not a function

The source code is only looking like this

import {install} from "vue-demi"
install()

Was testing out the alias solution you commented a while ago but it didn't work. Seems to come from cjs files and karma-typescript conflict I don't know :(

victorgarciaesgi avatar Oct 19 '21 12:10 victorgarciaesgi

Temporary fix for now is switching back to version 0.10.1 of vue-demi and version 1.0.4 of @vue/composition-api

victorgarciaesgi avatar Oct 20 '21 13:10 victorgarciaesgi