Closed mlevison closed 2 months ago
Hi Mark, thanks for filing this issue.
I just tried deploying to Netlify and it worked without any errors on my end.
Your solution (excluding the public/pagefind directory in tsconfig.json) seems like a good way to avoid this issue. I'll update the repo to prevent similar issues for other users.
To troubleshoot further:
If you're still having issues please let me know and I'll look into this further!
Trevor - thanks for the rapid response.
'm attempting to deploy the https://github.com/trevortylerlee/astro-micro template to Netifly. When I build locally, I don't get any warnings. When I deploy to Netifly I get: :50:32 PM: public/pagefind/pagefind-highlight.js:966:16 - warning ts(80002): This constructor function may be converted to a class declaration. 2:50:32 PM: 966 function Mark2(ctx) { 2:50:32 PM: ~ 2:50:32 PM: public/pagefind/pagefind-highlight.js:855:46 - warning ts(6133): 'term' is declared but its value is never read. 2:50:32 PM: 855 _this10[fn](regex, 1, function(term, node) { 2:50:32 PM: ~~ 2:50:32 PM: public/pagefind/pagefind-highlight.js:702:45 - warning ts(6133): 'k' is declared but its value is never read. 2:50:32 PM: 702 dict.nodes.forEach(function(k, j) { 2:50:32 PM: ~ 2:50:32 PM: public/pagefind/pagefind-highlight.js:386:18 - warning ts(80002): This constructor function may be converted to a class declaration. 2:50:32 PM: 386 function Mark3(ctx) { 2:50:32 PM: ~~~~ 2:50:32 PM: public/pagefind/pagefind-highlight.js:75:18 - warning ts(80002): This constructor function may be converted to a class declaration. 2:50:32 PM: 75 function DOMIterator2(ctx) { 2:50:32 PM: ~~
Is this expected? Have I missed a config?
The solution I found (with help on discord) was to edit tsconfig: