Open BrannJoly opened 10 months ago
You have to define some additional things in vite.config.ts
. We have:
define: {
"process.env": process.env,
global: "window",
},
Once you're past this though, you may hit: https://github.com/epam/ketcher/issues/3711. That's what I'm currently stuck on.
Steps to Reproduce npm create vite@latest test -- --template react-ts npm add ketcher-core ketcher-react ketcher-standalone
add this to main.ts
go to http://localhost:3000/
Actual behavior I have this error in the console and my app completely fails to show in the browser
Expected behavior no error
Desktop
Ketcher version 2.15.1
Additional context the error happens while trying to access process.env.NODE_DEBUG Since we're in browser, process.env is not supposed to be set. I don't understand why a frontend package seems to assume to be in a server-side environment ... There's something I'm missing !