Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error in vanila.ts file #760

Open
CyrilleTanguay opened this issue Aug 20, 2024 · 0 comments
Open

[Bug]: Error in vanila.ts file #760

CyrilleTanguay opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CyrilleTanguay
Copy link

CyrilleTanguay commented Aug 20, 2024

Bug description

Hello,

Every time I type npm run build, I have this error:

./node_modules/tom-select/src/vanilla.ts:100:39
Type error: Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '\x09' instead.

   98 |         iterate( args, (_classes) =>{
   99 |                 if( typeof _classes === 'string' ){
> 100 |                         _classes = _classes.trim().split(/[\11\12\14\15\40]/);
      |                                                            ^
  101 |                 }
  102 |                 if( Array.isArray(_classes) ){
  103 |                         classes = classes.concat(_classes);

(BTW, I noticed a pull request that should fix that)

Expected behavior

I expected that there would be no errors

Steps to reproduce

  1. Install tom-select
  2. type npm run build

Additional context

From the package.json file:

  • "typescript": "^5.5.4"
  • "tom-select": "^2.3.1"
@CyrilleTanguay CyrilleTanguay added the bug Something isn't working label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant