Skip to content

an exception occurred while processing the buffer: Buffer is not defined #251

@JohnSmall

Description

@JohnSmall

with this code

`<%= form.filestack_field :image, 'Test Filestack!', pickerOptions: { 'maxFiles': 2 , onFileUploadFinished: 'onFileUploadFinishedCallback' }, id: SecureRandom.uuid , input_id: SecureRandom.uuid %>

`

When I upload an image I see this error in the console log

An exception occurred while processing the buffer: Buffer is not defined
and below it an error that expand out to

Could not load content for webpack://filestack/filestack.umd.js (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)

But the file gets uploaded anyway.

I'm using Rails 7.2 with import maps, so I'm not using webpack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions