5 Replies
It's my first serverless function/worker, I am not sure if that error has to do with the worker script or if it's something to do with cloudflare workers that I need to setup somehow.
I'm following instructions to get this worker setup so the code isn't even mine but from what I can tell, it's not importing any libraries in the code
https://protomaps.github.io/PMTiles/index.js
when I hover over
captureStackTract
I get Tokenization is skipped for long lines for performance reasons. This can be configured via editor.maxTokenizationLineLength.
hmm, even after changing the token length from 2500 to 10,000 still getting thatI just copied it into my vscode and used prettier to format it, I just put it on this site : https://codefile.io/f/YjU6qFDD4I
Codefile.io
Untitled file — Codefile
Create collaborative code files online for your technical interviews, pair programming, teaching, etc.
I just noticed I am also getting that error for the example worker when you create a new worker
![](https://cdn.answeroverflow.com/1132084351019012167/image.png)
so, I guess it doesn't have to do with the code from that site
that's okay, thank you for taking the time