Open pantharshit007 opened 3 weeks ago
JUST ADD THIS LINE IN YOUR vite.config.js
file
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
define: {
global: "globalThis",
}
})
this is the important part
define: {
global: "globalThis",
}
SOURCE: here https://github.com/react-simple-code-editor/react-simple-code-editor/issues/86
Describe the bug I got an error like the one mention in the screenshot below in the react VITE project. I did exactly the same steps that are mentioned in the official npm site.
here global is deprecated and we need to use globalThis instead
Screenshots
![image](https://github.com/coston/react-super-responsive-table/assets/97608579/c449df8f-46a9-45ae-88a9-f4e56ce5ceb0)
SOLUTION IS IN THE BELOW COMMENT UNLIKE ISSUE #552