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
Describe the bug
I encountered the following error: Module not found: Error: Package path . is not exported from package node_modules/@middy/core (see exports field in node_modules/@middy/core/package.json).
To Reproduce
In my tsconfig.json file, I set the following configuration:
"module": "commonjs",
"moduleResolution": "node"
This issue arises when using TypeScript version 4.8.4 in conjunction with webpack.
Expected behavior
I resolved the problem by applying the following patch to the package.json file of the @middy/core module:
As announced over a year ago, CommonJS is no longer supported with the latest release, v5. AWS Lambda can run ESM natively and benchmarks show it out performs CJS. So, updating is recommended. If you need CJS support, v4.x is an option (currently has no reported security vulnerabilities).
Describe the bug
I encountered the following error:
Module not found: Error: Package path . is not exported from package node_modules/@middy/core (see exports field in node_modules/@middy/core/package.json)
.To Reproduce
In my
tsconfig.json
file, I set the following configuration:This issue arises when using TypeScript version 4.8.4 in conjunction with webpack.
Expected behavior
I resolved the problem by applying the following patch to the
package.json
file of the@middy/core
module:Environment:
Additional context
@willfarrell @lmammino, if it's acceptable to you, I can create a pull request for the suggested changes.
Thanks
The text was updated successfully, but these errors were encountered: