You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using serverless-offline in combination with (deprecated) serverless-offline-assume-role plugin to connect to a stage-specific AWS account. When upgrading to serverless-offline v8.6, we've noticed that the plugin doesn't work anymore, the credentials are "lost" after a few requests.
I did some debugging and I believe the issue is introduced by #1230 . The regexes that check for node_modules filepath were expanded to include the path separator, and they account only for the Unix-style separator. We use Windows for our dev boxes, and therefore serverless-offline keeps unloading all modules, regardless of whether they are in node_modules or not.
The text was updated successfully, but these errors were encountered:
@coyoteecdv9 was released a couple days ago. could you see if that fixes your problems? worker threads are now used by default. if you want the handler to reload for development you can use --reloadHandler, which creates new lambda instances and discards previous ones.
closing this in the meanwhile. please open a new issue if this does not fix your issue.
Bug Report
We are using serverless-offline in combination with (deprecated) serverless-offline-assume-role plugin to connect to a stage-specific AWS account. When upgrading to serverless-offline v8.6, we've noticed that the plugin doesn't work anymore, the credentials are "lost" after a few requests.
I did some debugging and I believe the issue is introduced by #1230 . The regexes that check for node_modules filepath were expanded to include the path separator, and they account only for the Unix-style separator. We use Windows for our dev boxes, and therefore
serverless-offline
keeps unloading all modules, regardless of whether they are in node_modules or not.The text was updated successfully, but these errors were encountered: