starsz commented on issue #1237:
URL: 
https://github.com/apache/apisix-dashboard/issues/1237#issuecomment-755996790


   @imjoey Thanks for reporting. It's indeed a bug.
   But I think there is a better solution. We can override the `require` 
function like this:
   
   ```lua
   local old_require = require
   require = function(...)
       local status, lib  = pcall(old_require, ...)
       if status then
           return lib
       end
   
       return {}
   end
   ```
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to