tiny-lru: TypeError: Cannot access private method

Hello,

I am using version 10.0.1 and encounter this issue when call get(), below show error in my browser console:

chunk-VNXF6W56.js?v=202f4f6a:39 Uncaught (in promise) TypeError: Cannot access private method
    at __accessCheck (chunk-VNXF6W56.js?v=202f4f6a:39:11)
    at __privateMethod (chunk-VNXF6W56.js?v=202f4f6a:47:3)
    at Proxy.get (tiny-lru.esm.js:80:7)
    at Object.<anonymous> (main.js:80:23)

which turn out to be here:

image

however, that is no issue at version 9.0.3

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@avoidwork I just upgrade to version 11 and it work as expected, thanks !

@kiwionly try 11.0.0; the private field was replaced with the same function in scope so that should work with the proxy.

I will stick to version 9 since I not have clear idea of how proxy and private method work.

I see, thanks !