Build fails on isbot import when entry.server.tsx is absent and pnpm is used for dependencies #9536
-
I recently created a new project using the Remix quick start command
When I recreate my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In your Vite configuration, you can specify external modules explicitly. This can be done by modifying your vite.config.ts or vite.config.js file to include isbot as an external module: // vite.config.ts
import { defineConfig } from 'vite';
export default defineConfig({
build: {
rollupOptions: {
external: ['isbot'],
},
},
}); |
Beta Was this translation helpful? Give feedback.
In your Vite configuration, you can specify external modules explicitly. This can be done by modifying your vite.config.ts or vite.config.js file to include isbot as an external module: