Jonas
Explore posts from serversIs it possible to make a Promise globally available on every page?
I want to have access to a Promise on every page because I need to see, if the action is done yet, on other pages. I am using vue-sonner with toast.promise.
The problem: I want to create a toast using a composable and the promise state should be reflected on other pages too, but it seems like the Promise is only active and resolvable on that page, where it is created. The promise is pending till I move back to the page, where it was created.
Is this even possible?
28 replies
ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config"
Why do I get so many errors all of a sudden? I didn't change a single line of code. I didn't update anything. I just pnpm installed.
------------------------------
- Operating System: Windows_NT
- Node Version: v18.19.0
- Nuxt Version: 3.13.2
- CLI Version: 3.14.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
------------------------------
[16:30:48] ERROR [worker reload] [worker init] Package import specifier "#internal/nitro/virtual/app-config" is not defined in package D:\xxx\node_modules\nitropack\package.json imported from D:\xxx\node_modules\nitropack\dist\runtime\config.mjs
at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at new NodeError (node:internal/errors:405:5)
at importNotDefined (node:internal/modules/esm/resolve:353:10)
at packageImportsResolve (node:internal/modules/esm/resolve:803:9)
at moduleResolve (node:internal/modules/esm/resolve:967:16)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)
5 replies
WARN [Vue warn]: Extraneous non-props attributes (data-v-14ce88ff) were passed to component
Yes, I am using 1.5.2.
Context: I am using shadcn-vue. The weird thing is, that I even disabled devtools and componentInspector in my nuxt.config.ts.
This is costing me so much time, because the server restarts all the time with this warning somehow. :/ ├── @nuxt/devtools-kit 1.5.2 ├── @nuxt/devtools 1.5.2 ├── @nuxt/devtools-kit 1.5.2 Operating System: Windows_NT Node Version: v18.19.0 Nuxt Version: 3.13.2 CLI Version: 3.14.0 Nitro Version: 2.9.7 Package Manager: [email protected] Builder: - User Config: - Runtime Modules: - Build Modules: - There is an issue on this on github, but the issue is closed, and I still have this problem.
Context: I am using shadcn-vue. The weird thing is, that I even disabled devtools and componentInspector in my nuxt.config.ts.
This is costing me so much time, because the server restarts all the time with this warning somehow. :/ ├── @nuxt/devtools-kit 1.5.2 ├── @nuxt/devtools 1.5.2 ├── @nuxt/devtools-kit 1.5.2 Operating System: Windows_NT Node Version: v18.19.0 Nuxt Version: 3.13.2 CLI Version: 3.14.0 Nitro Version: 2.9.7 Package Manager: [email protected] Builder: - User Config: - Runtime Modules: - Build Modules: - There is an issue on this on github, but the issue is closed, and I still have this problem.
6 replies
DTDrizzle Team
•Created by Jonas on 8/24/2024 in #help
How do I dynamically insert multiple encrypted values?
7 replies
@ai-sdk/vue: How do I react to an error I catch inside `/api` in .vue file?
I am both new to vue and nuxt. How and where do I react to that error, i sent from the api endpoint now? I want to create a new toast message in the frontend on error.
This is my code at
/api/chat
:
How I interact in the frontend:
1 replies
DTDrizzle Team
•Created by Jonas on 2/29/2024 in #help
ClientAuthentication Error using heroku-postgres
What do I have to do? This one is a heroku-postgres database (actually aws), it worked using a vercel-postgres database.
10 replies