We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got
Uncaught ReferenceError: document is not defined
on production, but everything is ok locally
vite.config.ts
import eslintPlugin from "@nabla/vite-plugin-eslint"; import react from "@vitejs/plugin-react"; import autoprefixer from "autoprefixer"; import dns from "dns"; import postcssLogical from "postcss-logical"; import { defineConfig } from "vite"; import svgr from "vite-plugin-svgr"; dns.setDefaultResultOrder("verbatim"); export default defineConfig({ assetsInclude: ["**/*.glb", "**/*.gltf", "**/*.hdr", "**/*.riv"], server: { host: "localhost", port: 3000, }, plugins: [react({ fastRefresh: false }), svgr(), eslintPlugin()], worker: { plugins: [react()] }, esbuild: { jsx: "automatic" }, css: { postcss: { plugins: [autoprefixer, postcssLogical], }, }, });
also not working with @vitejs/plugin-react-swc
@vitejs/plugin-react-swc
The text was updated successfully, but these errors were encountered:
The problem occurs because I use the Html component After building, styles are still inserted by injecting
Html
Sorry, something went wrong.
Also, it doesn't work if something uses raf
No branches or pull requests
I got
on production, but everything is ok locally
vite.config.ts
also not working with
@vitejs/plugin-react-swc
The text was updated successfully, but these errors were encountered: