justin-chu / react-fast-marquee

A lightweight React component that harnesses the power of CSS animations to create silky smooth marquees.
https://react-fast-marquee.com
MIT License
1.16k stars 95 forks source link

when deploy on netlify getting error #73

Open rafipopz98 opened 1 year ago

rafipopz98 commented 1 year ago

[vite]: Rollup failed to resolve import react-fast-marquee from /opt/build/repo/src/components/Marquee/Marquees.jsx. 9:00:06 PM: This is most likely unintended because it can break your application at runtime. 9:00:06 PM: If you do want to externalize this module explicitly add it to 9:00:06 PM: build.rollupOptions.external 9:00:06 PM: error during build: 9:00:06 PM: Error: [vite]: Rollup failed to resolve import react-fast-marquee from /opt/build/repo/src/components/Marquee/Marquees.jsx. 9:00:06 PM: This is most likely unintended because it can break your application at runtime. 9:00:06 PM: If you do want to externalize this module explicitly add it to 9:00:06 PM: build.rollupOptions.external 9:00:06 PM: at viteWarn (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:46597:23) 9:00:06 PM: at onwarn (file:///opt/build/repo/node_modules/@vitejs/plugin-react/dist/index.mjs:238:9) 9:00:06 PM: at onRollupWarning (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:46618:9) 9:00:06 PM: at onwarn (file:///opt/build/repo/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:46368:13) 9:00:06 PM: at file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24051:13 9:00:06 PM: at Object.logger [as onLog] (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:25718:9) 9:00:06 PM: at ModuleLoader.handleInvalidResolvedId (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24634:26) 9:00:06 PM: at file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24594:26 9:00:06 PM: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

and this is my vite config file

import { defineConfig } from 'vite' import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], })