Skip to content

zsilbi/nuxt-icon-workerd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuxt-icon-workerd (error reproduction)

Testing nuxt-icon

Issue: nuxt/icon#142

  1. Install dependencies:
pnpm i
  1. Run build:
NITRO_PRESET=cloudflare_module pnpm run build
  1. Open these pages first:

  2. Start Wrangler:

npx wrangler dev .output/server/index.mjs --site .output/public
  1. Select all opened tabs in Chrome by holding the Shift key
  2. Refresh all tabs at the same time and check console for errors. The errored tabs will also contain an error message: Error: The script will never generate a response.
  3. Repeat steps 3-6 if no error is visible in console
  4. Remove <Icon> from app.vue and check again

Testing @iconify/core loadIcon()

  1. Change to the the iconify directory
cd iconify
  1. Install dependencies:
pnpm i
  1. Start Wrangler:
npx wrangler dev index.js
  1. Open page
  1. Check console and the open tab

Errors that should appear in the console:

✘ [ERROR] Uncaught (in response) Error: The script will never generate a response.

✘ [ERROR] A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published