Lukas6mo ago

Uncaught error during deno deploy of vite app

When creating a new vite app with vue and typescript I get this error message. This error is reproducable. Execute deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest Select typescript and vue & upload it to deno deploy. Error The deployment failed: UNCAUGHT_EXCEPTION TypeError: Cannot read properties of undefined (reading 'getReport') I don´t know if this has something to do with but it would help me a lot if anyone knows more than me<:party_deno:1035517691517218847> Merry Christmas everyone
Intermittent failure when creating deployments - Incident details -...
Intermittent failure when creating deployments - Incident details - Real-time system status for Deno Deploy and other Deno web services
No description
1 Reply
Deno AI Helper
Deno AI Helper6mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the error message you've provided, it seems like there might be an issue with the code trying to access a property of an undefined object. The error TypeError: Cannot read properties of undefined (reading 'getReport') suggests that somewhere in the code, there's an attempt to call getReport on an object that hasn't been properly initialized. This advice is not based on the Deno documentation, so please double-check the accuracy of this advice. It's possible that the error could be related to the specific setup of your Vite app with Vue and TypeScript, or it could be an issue with the dependencies or the build process. Since the error occurs during deployment, it might also be related to the environment in which the app is being deployed. Make sure that all objects and variables that should be initialized are indeed properly set up before any methods are called on them. You might want to look into the build output of your Vite app or any server-side code that's running as part of the deployment to identify where the getReport method is being called and why the object it's being called on is undefined. If the issue persists, you may want to reach out to the community or check if there are any open issues on the Vite or Deno Deploy repositories that could be related to your problem. Merry Christmas to you too! 🎄🦕