Comments (6)
Error line:
mounted() {
this.showNotice()
if (this.useDefaultCss) {
require('./themes/default/index.styl')
}
eventBus.$on('toast-clear', this.close)
},
Error data
vue.js:1184 [Vue warn]: Unhandled error during execution of mounted hook
at <Toast message="Logged as WHMCS BOT!" >
warn @ vue.js:1184
logError @ vue.js:1357
handleError @ vue.js:1349
callWithErrorHandling @ vue.js:1303
callWithAsyncErrorHandling @ vue.js:1309
hook.__weh.hook.__weh @ vue.js:3056
flushPostFlushCbs @ vue.js:1479
render @ vue.js:5942
render @ vue.js:9304
mount @ mount-component.js:14
show @ api.js:9
(anonymous) @ Settings.vue:109
Promise.then (async)
(anonymous) @ Settings.vue:104
Promise.then (async)
onSubmit @ Settings.vue:100
(anonymous) @ Settings.vue:4
(anonymous) @ vue.js:9216
callWithErrorHandling @ vue.js:1300
callWithAsyncErrorHandling @ vue.js:1309
invoker @ vue.js:8406
Toaster.vue:92 Uncaught (in promise) ReferenceError: require is not defined
at Proxy.mounted (Toaster.vue:92)
at callWithErrorHandling (vue.js:1300)
at callWithAsyncErrorHandling (vue.js:1309)
at Array.hook.__weh.hook.__weh (vue.js:3056)
at flushPostFlushCbs (vue.js:1479)
at Object.render (vue.js:5942)
at render (vue.js:9304)
at mount (mount-component.js:14)
at Object.show (api.js:9)
at Settings.vue:109
from vue-toaster.
waiting for a fix 😁
https://github.com/Androz2091/slash-commands-gui/blob/main/src/views/Settings.vue#L144
from vue-toaster.
Hi, @ysq352358871! Thanks for the issue report. Can you share your vue-toaster options and a step sequence to reproduce this error?
from vue-toaster.
issue closed for lack of explanation
from vue-toaster.
I'm getting the same error
from vue-toaster.
Fix in 1.2.1. Require was removed
from vue-toaster.
Related Issues (20)
- Setting dismissible: false also disables the onClick function HOT 1
- Use in Composition API supported? HOT 4
- Add github star and fork buttons on example
- Doesn't work in Typescript HOT 1
- Vue 4 suppport? HOT 2
- Use vue-toaster inside action.js HOT 6
- Should be used with Vue3 Typescript HOT 3
- ReferenceError glob is not defined
- Add separate close button HOT 2
- Publish latest release to npm HOT 1
- @meforma/vue-toaster doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module HOT 1
- Warnings when installing?
- Cannot read properties of undefined (reading '$toast') HOT 3
- Custom CSS HOT 3
- Calling this.$toast.clear() doesn't clear any toasts (using Vite) HOT 7
- Why the toaster doesn't show up on mobile browsers?
- Is there a way to change the toast colors? HOT 2
- Unable to build the site HOT 1
- Import not work in main.js
- Different mounting point HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-toaster.