Skip to content

Tauri app and missing environment #24

Answered by sushinpv
VPKSoft asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is because, the process is not defined in the vite by default,

You can define it by using vite.config.ts

import { defineConfig } from 'vite'
// ...
export default defineConfig({
  // ...
  define: {
    'process.env': {}
  }
}) 

You can find more information here vitejs/vite#1973

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VPKSoft
Comment options

Answer selected by VPKSoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants