Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Vue 3 compatibility #34

Open
mariusa opened this issue Jul 1, 2020 · 0 comments
Open

Vue 3 compatibility #34

mariusa opened this issue Jul 1, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mariusa
Copy link

mariusa commented Jul 1, 2020

Would like to use this component in a Vue 3 project generated by https://github.com/vitejs/vite

Note, this is just about being usable, not porting the component to Vue 3 composition APIs.

Steps to Reproduce

$ npm init vite-app <project-name>
$ cd <project-name>
$ npm install
$ npm install vue-gallery-slideshow --save
$ npm run dev

App.vue: follow your README

Browser error:
GET https://localhost:3000/@modules/vue-gallery-slideshow/src/index.js net::ERR_ABORTED 404

The cause is this line in package.json
"jsnext:main": "src/index.js",
which isn't included in build.

Removing that gives another error
Uncaught SyntaxError: The requested module '/@modules/vue-gallery-slideshow/dist/js/vue-gallery-slideshow.js' does not provide an export named 'default'

@normansander normansander added the bug Something isn't working label Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants