question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[vue-3] useLoading is missing from exports

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ankurk91commented, Dec 22, 2021

I have just released a beta version with named exports

npm install vue-loading-overlay@5.0.0

https://unpkg.com/browse/vue-loading-overlay@5.0.0/

i will mark it stable after more testing.

1reaction
ankurk91commented, Aug 28, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found