Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error isAsyncWrapper #17222

Closed
treeindark opened this issue May 22, 2024 · 1 comment
Closed

error isAsyncWrapper #17222

treeindark opened this issue May 22, 2024 · 1 comment

Comments

@treeindark
Copy link

What happened?

In dev no error, but when i build pwa, when i close my component (it close):

TypeError: i.type is undefined
    isAsyncWrapper runtime-core.esm-bundler.js:2461
    unmount runtime-core.esm-bundler.js:6528
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountComponent runtime-core.esm-bundler.js:6633
    unmount runtime-core.esm-bundler.js:6534
    unmountChildren runtime-core.esm-bundler.js:6653
    unmount runtime-core.esm-bundler.js:6562
    patch runtime-core.esm-bundler.js:5302
    componentUpdateFn runtime-core.esm-bundler.js:6107
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    updateComponent runtime-core.esm-bundler.js:5960
    processComponent runtime-core.esm-bundler.js:5894
    patch runtime-core.esm-bundler.js:5351
    componentUpdateFn runtime-core.esm-bundler.js:6107
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    updateComponent runtime-core.esm-bundler.js:5960
    processComponent runtime-core.esm-bundler.js:5894
    patch runtime-core.esm-bundler.js:5351
    patchKeyedChildren runtime-core.esm-bundler.js:6304
    patchChildren runtime-core.esm-bundler.js:6218
    patchElement runtime-core.esm-bundler.js:5646
    processElement runtime-core.esm-bundler.js:5482
    patch runtime-core.esm-bundler.js:5339
    patchKeyedChildren runtime-core.esm-bundler.js:6304
    patchChildren runtime-core.esm-bundler.js:6218
    processFragment runtime-core.esm-bundler.js:5857
    patch runtime-core.esm-bundler.js:5325
    componentUpdateFn runtime-core.esm-bundler.js:6107
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    updateComponent runtime-core.esm-bundler.js:5960
    processComponent runtime-core.esm-bundler.js:5894
    patch runtime-core.esm-bundler.js:5351
    patchKeyedChildren runtime-core.esm-bundler.js:6304
    patchChildren runtime-core.esm-bundler.js:6218
    process runtime-core.esm-bundler.js:6904
    patch runtime-core.esm-bundler.js:5363
    patchKeyedChildren runtime-core.esm-bundler.js:6304
    patchChildren runtime-core.esm-bundler.js:6218
    processFragment runtime-core.esm-bundler.js:5857
    patch runtime-core.esm-bundler.js:5325
    componentUpdateFn runtime-core.esm-bundler.js:6107
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    updateComponent runtime-core.esm-bundler.js:5960
    processComponent runtime-core.esm-bundler.js:5894
    patch runtime-core.esm-bundler.js:5351
    patchKeyedChildren runtime-core.esm-bundler.js:6304
    patchChildren runtime-core.esm-bundler.js:6218
    patchElement runtime-core.esm-bundler.js:5646
    processElement runtime-core.esm-bundler.js:5482
    patch runtime-core.esm-bundler.js:5339
    componentUpdateFn runtime-core.esm-bundler.js:6107
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    callWithErrorHandling runtime-core.esm-bundler.js:195
    flushJobs runtime-core.esm-bundler.js:410
    promise callback*queueFlush runtime-core.esm-bundler.js:319
    queueJob runtime-core.esm-bundler.js:313
    effect runtime-core.esm-bundler.js:6145
    resetScheduling reactivity.esm-bundler.js:263
    trigger reactivity.esm-bundler.js:403
    set reactivity.esm-bundler.js:526
    6 Ventes.vue:121
    callWithErrorHandling runtime-core.esm-bundler.js:195
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:202
    emit runtime-core.esm-bundler.js:725
    hide use-model-toggle.js:93
    onBackdropClick QDialog.js:365
    callWithErrorHandling runtime-core.esm-bundler.js:195
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:202
    invoker runtime-dom.esm-bundler.js:696
    addEventListener runtime-dom.esm-bundler.js:647
    patchEvent runtime-dom.esm-bundler.js:665
    patchProp runtime-dom.esm-bundler.js:742
    mountElement runtime-core.esm-bundler.js:5524
    processElement runtime-core.esm-bundler.js:5471
    patch runtime-core.esm-bundler.js:5339

my dialog call:

...
 <q-dialog v-model="openEditStock" full-width>
      <EditStockNew @close="quitteStocks" :stocks="stocks" />
    </q-dialog>
...
components: {
    EditStockNew: defineAsyncComponent(() => import('components/EditStockNew.vue')),

and editStockNew :

<template>
  <q-card class="bg-white "> 
    <q-bar>
      <q-icon name="ballot" />
      <div>Gestion des stocks</div>
      <q-space />
      <q-btn dense flat icon="close" @click="$emit('close')" v-close-popup />
    </q-bar>...

What did you expect to happen?

I don' know...

Reproduction URL

https//notTest.com

How to reproduce?

I don' know...

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Components (quasar)

Platforms/Browsers

Firefox

Quasar info output

λ quasar info

Operating System - Windows_NT(10.0.19045) - win32/x64
NodeJs - 20.11.1

Global packages
  NPM - 10.2.4
  yarn - 1.22.19
  @quasar/cli - 2.4.0
  @quasar/icongenie - 2.5.3
  cordova - 12.0.0 ([email protected])

Important local packages
  quasar - 2.16.4 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-webpack - 3.13.2 -- Quasar Framework App CLI with Webpack
  @quasar/extras - 1.16.11 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - 1.1.0 -- Official ESLint plugin for Quasar
  vue - 3.4.27 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.3.2
  pinia - Not installed
  vuex - 4.1.0 -- state management for Vue.js
  electron - 9.4.4 -- Build cross platform desktop apps with JavaScript, HTML, and CSS
  electron-packager - 14.2.1 -- Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI
  @electron/packager - Not installed
  electron-builder - 22.14.13 -- A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out of the box
  @babel/core - 7.24.5 -- Babel compiler core.
  webpack - 5.91.0 -- Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess 
files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  webpack-dev-server - 4.11.1 -- Serves a webpack app. Updates the browser on changes.
  workbox-webpack-plugin - 6.6.1 -- A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  typescript - 4.9.4 -- TypeScript is a language for application scale JavaScript development
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  @quasar/quasar-app-extension-dotenv - 1.1.0 -- Load .env variables into your quasar project

Networking
  Host - PC
  Ethernet 6 - 192.168.243.2
  Ethernet 4 - 192.168.56.1
  Ethernet - 192.168.1.17

Relevant log output

error in Edge:
TypeError: Cannot read properties of undefined (reading '__asyncLoader')
    at isAsyncWrapper (runtime-core.esm-bundler.js:2461:1)
    at unmount (runtime-core.esm-bundler.js:6528:1)
    at unmountChildren (runtime-core.esm-bundler.js:6653:1)
    at unmount (runtime-core.esm-bundler.js:6562:1)
    at unmountComponent (runtime-core.esm-bundler.js:6633:1)
    at unmount (runtime-core.esm-bundler.js:6534:1)
    at unmountChildren (runtime-core.esm-bundler.js:6653:1)
    at unmount (runtime-core.esm-bundler.js:6562:1)
    at unmountComponent (runtime-core.esm-bundler.js:6633:1)
    at unmount (runtime-core.esm-bundler.js:6534:1)

Additional context

No response

Copy link

Hi @treeindark! 👋

It looks like you provided an invalid or unsupported reproduction URL.
Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub.
Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc.
Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant