Questo è il mio codice "import _ from 'lodashOverride';
import React from 'react';
import { connect } from 'react-redux';
import styles from './arxSearchBox.module.scss';
import { faSearch, faTimesCircle } from '@shareSrc/Style/FontAwesomeSvg';
import { ArxButton } from '@shareSrc/Components/ArxButton/ArxButton';
import { reduxActions } from 'Scripts/Stores/actions';

interface ComponentProps {
	context: string;
	applyFilterFunction?: (context: string, filter: string) => unknown;
	filter?: string;
	buttonStyles?: string;
	searchStyles?: string;
	canClear?: boolean;
	placeholder?: string;
	applyFilterFunctionDelayed?: boolean;
	minCharSearch?: number;
}

interface ComponentState { localFilter: string }

class ArxSearchBoxClass extends React.Component<ComponentProps, ComponentState> {
	constructor(props) {
		super(props);

		this.state = {
			localFilter: this.props.filter
		};
	}

	delaySearch = !(this.props.applyFilterFunctionDelayed === false);

	typingTimeout = null;
	setFilter = (element): void => {
		const value = element.target.value;

		clearTimeout(this.typingTimeout);
		this.setState({ localFilter: value }, () => {
			const minChar = _.isNil(this.props.minCharSearch) ? 0 : this.props.minCharSearch;
			const currentCharCount = value?.length ?? 0;

			//devo aver impostato almeno un carattere, altrimenti se ho sbiancato il campo lo notifico lo stesso (come il clear)
			if (currentCharCount > 0 && currentCharCount < minChar) {
				return;
			}

			if (this.delaySearch) {
				this.typingTimeout = setTimeout(() => {
					this.props.applyFilterFunction(this.props.context, this.state.localFilter);
				}, 300);
			} else {
				this.props.applyFilterFunction(this.props.context, this.state.localFilter);
			}
		});
	};

	componentDidUpdate(propsPrecedenti): void {
		// Utilizzo tipico (non dimenticarti di comparare le props):
		if (this.props.filter !== propsPrecedenti.filter && this.props.filter !== this.state.localFilter) {
			this.setState({ localFilter: this.props.filter });
		}
	}

	render(): JSX.Element {
		//const { filter } = this.props;
		const placeholderString = _.isNilOrEmpty(this.props.placeholder) ? 'Cerca...' : this.props.placeholder;
		const showClearButton = this.props.canClear && !_.isNilOrEmpty(this.state.localFilter);

		return (
			<div className={styles.searchBar}>
				<div className={[styles.searchContainer, this.props.searchStyles].join(' ')}>
					<ArxButton
						iconProps={{ icon: faSearch }}
						type={'flat'}
						isButtonField={true}
						additionalStyleClass={[styles.buttons, styles.searchIcon, this.props.buttonStyles].join(' ')}
						click={(el) => {
							const inputSearch = el.currentTarget.nextElementSibling as HTMLElement;
							inputSearch.focus();
						}}>
					</ArxButton>
					<input data-cy={'arxSearchBoxInput'} className={[styles.searchInput, showClearButton ? styles.searchInput_withClear : undefined].join(' ')} type='text' placeholder={placeholderString} value={this.state.localFilter} onChange={this.setFilter.bind(this)}></input>
					{
						showClearButton && //fallback per boolean
						<ArxButton
							tooltip={'Cancella'}
							id={'arxSearchBoxInputClearBtn'}
							iconProps={{ icon: faTimesCircle }}
							isButtonField={true}
							type={'flat'}
							additionalStyleClass={[styles.buttons, this.props.buttonStyles].join(' ')}
							click={() => { this.props.applyFilterFunction(this.props.context, ''); }}>
						</ArxButton>
					}
				</div >
			</div>
		);
	}
}

const mapDispatchToProps = (dispatch): { applyFilterFunction: (context: string, filter: string) => unknown } => ({
	applyFilterFunction: (context: string, filter: string) => dispatch(reduxActions.applyFilter(context, filter))
});

const ArxSearchBox = connect(undefined, mapDispatchToProps)(ArxSearchBoxClass);

export { ArxSearchBox, ArxSearchBoxClass };
"

ho questo errore "
error during build:
[vite]: Rollup failed to resolve import "Scripts/Stores/actions" from "C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/share/src/Components/ArxSearchBox/ArxSearchBox.tsx".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
    at viteLog (file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/vite/dist/node/chunks/dep-DPTTEEJb.js:34183:57)
    at file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/vite/dist/node/chunks/dep-DPTTEEJb.js:34221:73
    at onwarn (file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/@vitejs/plugin-react/dist/index.mjs:104:9)
    at file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/vite/dist/node/chunks/dep-DPTTEEJb.js:34221:28
    at onRollupLog (file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/vite/dist/node/chunks/dep-DPTTEEJb.js:34216:3)
    at onLog (file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/vite/dist/node/chunks/dep-DPTTEEJb.js:34004:4)
    at file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/rollup/dist/es/shared/node-entry.js:20791:32
    at Object.logger [as onLog] (file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/rollup/dist/es/shared/node-entry.js:22671:9)
    at ModuleLoader.handleInvalidResolvedId (file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/rollup/dist/es/shared/node-entry.js:21417:26)
    at file:///C:/Git/ArxivarClienti/Euroitalia/EuroItalia.MiddlewarePortal/src/node_modules/rollup/dist/es/shared/node-entry.js:21375:26

"