question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prefresh/vite: runtimeCode is not defined

See original GitHub issue

While working on a project of mine bundled with Vite using the preact preset, I’ve encountered strange errors which seemed to be from prefresh/vite.

Upon closer inspection of the error message and the lib’s code, I’ve found that in the vite/src/index.js file, line 24 there is indeed a reference to a runtimeCode variable, which indeed is not define anywhere, leading to an unpleasant error 😦

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
JoviDeCroockcommented, Apr 6, 2021

Oh waw, that is completely my mistake 😅 fix incoming!

1reaction
JoviDeCroockcommented, Apr 11, 2021

Thank you so much for looking into this @cyyynthia and for the in-depth explanation. This is much appreciated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught ReferenceError: process is not defined · Issue #1973
Describe the bug When I upgrade vite to any version after 2.0.0-beta.62 I get ... App.vue:36 Uncaught ReferenceError: process is not defined
Read more >
vite uncaught referenceerror: require is not defined - You.com
Vite / Vue 3 : "require is not defined" when using image source as props ... There should never be require in source...
Read more >
Troubleshooting - Vite
Vite cannot handle and does not support code that only runs on non-strict mode (sloppy mode). This is because Vite uses ESM and...
Read more >
@vitejs/plugin-react - npm
The all-in-one Vite plugin for React projects. enable Fast Refresh in development; use the automatic JSX runtime; avoid manual import React in ....
Read more >
Asset Bundling (Vite) - The PHP Framework For Web Artisans
However, it lacks some features that Laravel Mix supports, such as the ability to copy arbitrary assets into the build that are not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found