No file matches include / exclude patterns Error when updating runtime (node14 -> node16) #12117
urig-40seas
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey 👋🏻
I attempted to upgrade my stack to use Node.js version 16 instead of Node.js 14.
However, following the update, I encountered the following error during deployment:
No file matches include/exclude patterns
.I followed advice from various sources and removed the
package.exclude
from my config entry, which eliminated the error. However, this action resulted in my serverless setup crashing after deployment withRuntime.ImportModuleError
errors 😔It seems that the node_modules are no longer linked to the serverless file, preventing it from running.
I see similar issues about the 'No file matches include / exclude patterns' error but they are not related to node upgrade.
I don't understand how a change in the Node.js version led to this issue. I would greatly appreciate any assistance you could provide 🙏🏻
My configuration:
Beta Was this translation helpful? Give feedback.
All reactions