[vue-3] useLoading is missing from exports
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] Bug report => search github for a similar issue or PR before submitting
[X ] Feature request
[ ] Other, please describe
I am just looking for an example using the new <script setup> feature in Vue 3.x. I can't figure out how to make this work. I see the code for useLoading but it is returning undefined when I do:
import { useLoading } from 'vue-loading-overlay';
const { loading } = useLoading();
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
vue.js - "export 'default' (imported as 'Vue') was not found in 'vue'
I'm using Vue 3 but the code I'm studying is Vue 2. My code Vue 2 in main.js import Vue from 'vue' import...
Read more >Vue Loading Overlay Component - npm
... import 'vue-loading-overlay/dist/css/index.css'; export default ... or use inject without importing useLoading // const $loading ...
Read more >Export 'render' (imported as 'render') was not found - Get Help
my project is configured with webpack +vue 3 + typescript. Package.json "scripts": { "test": "echo \"Error: no test specified\" && exit 1", ...
Read more >does not provide an export named 'default' vue3 - You.com
if you are using latest version of vue , vue3 this code import { Vue } from ... Vue3/TypeScript - Can not import...
Read more >Javascript - Export default was not found - Laracasts
I have a project build in Vue 2, and I made a simple function for translating months in dates, which I would like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have just released a beta version with named exports
https://unpkg.com/browse/vue-loading-overlay@5.0.0/
i will mark it stable after more testing.
I meant my webpack, not yours , this package is using webpack to bundle the source as well
PS. Tried this solution, but no luck https://webpack.js.org/configuration/optimization/#optimizationusedexports