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

Sporadic crash of Astro dev server with error in astro/icon #67

Closed
christian-hackyourshack opened this issue Nov 7, 2022 · 3 comments
Closed
Labels
question Further information is requested

Comments

@christian-hackyourshack
Copy link

The following happens every once in a while (1 out of 4-5 times) when starting or restarting the Astro dev server.

Cannot convert undefined or null to object
/node_modules/.pnpm/astro-icon@0.8.0/node_modules/astro-icon/index.ts:25:23
TypeError: Cannot convert undefined or null to object
    at Function.assign (<anonymous>)
    at eval (/node_modules/.pnpm/astro-icon@0.8.0/node_modules/astro-icon/index.ts:25:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async instantiateModule (file:///workspaces/dooiy/node_modules/.pnpm/vite@3.2.2_sass@1.56.0/node_modules/vi
@stramel stramel added the question Further information is requested label Nov 11, 2022
@stramel
Copy link
Collaborator

stramel commented Nov 11, 2022

@christian-hackyourshack Can you share a bit more about your setup and some code?I'm unable to determine based off the error message above what the issue is.

@christian-hackyourshack
Copy link
Author

I can't tell you much, as it always happens during startup.

My setup:

  • astro 1.6.7 (vite 3.2.3)
  • astro-icon 0.8.0

I am using astro-icon only in one place at the moment with some custom icons, but it never hits that place, it is during initial module loading that it crashes (as can be seen in the stacktrace above).

@stramel
Copy link
Collaborator

stramel commented Mar 15, 2023

Can you confirm this is still happening with the latest version of astro?

@stramel stramel closed this as completed May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants