Skip to content

this.tokenizer.supportsRandomAccess is not a function #69

Description

@ThisIsMissEm

Package version

10.0.3

Describe the bug

This bug occurs when trying to validate file uploads, essentially we had overrides for strtok3 at one point, and the downstream module that depends on strtok3 has adapted to the newer API in strtok3 10.x, but the overrides in package.json or in other dependencies forces strtok3 8.x, which doesn't have the same API.

This tends to affect xlsx and docx type files.

The current version of strtok3 that gets installed with adonisjs 6.17.2 is strtok3 10.2.1, but lucid was causing it to be overridden sometimes with strtok3 8.0.1 (I saw this with npm but not with pnpm)

This was recently fixed in Lucid 21.6.1, but people may still have overrides for strtok3 in their package.json.

Reproduction repo

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions