I can’t see the dropzone tile in my blade view

I’m using dropzone with Laravel 9 for the first time.

Following the documentation at the following link:

Dropzone documentation



<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Nuovo Annuncio</div>
                <div class="card-body">
                <div class="form-group row">
                    <label for="images" class="col-md-12 col-form-label text-md-right">Immagini</label>
                    <div class="col-md-12">

                        <div id="dropzone">
                            <form action="" class="dropzone" id="file-upload" enctype="multipart/form-data">
                                <div class="dz-message">
                                    Drag and Drop Single/Multiple Files Here<br>

                            <span class="invalid-feedback" role="alert"> <strong>{{ $message }}</strong></span>
<script type="text/javascript">
const { Dropzone } = require("dropzone");
    if (document.getElementById('file-upload')) {
        let dropzone = new Dropzone('#file-upload', {
            thumbnailWidth: 200,
            maxFilesize: 1,
            acceptedFiles: ".jpeg,.jpg,.png,.gif"

Specifically I’m getting the following error:

Uncaught ReferenceError: require is not defined

Can you help me please?