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
{{ message }}
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
However, seeing warnings like this when compiling with webpack. Any ideas on how to fix?
WARNING in ./node_modules/aws-lambda-router/lib/proxyIntegration.d.ts 3:8
Module parse failed: Unexpected token (3:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import { APIGatewayEventRequestContext, APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda';
| import { ProcessMethod } from './EventProcessor';
> declare type ProxyIntegrationParams = {
| paths?: {
| [paramId: string]: string;
@ ./node_modules/aws-lambda-router/lib sync ^\.\/.*$ ./proxyIntegration.d.ts
@ ./node_modules/aws-lambda-router/index.js
@ ./src/lambdas/es_manager.ts
Hi, I also have this problem. I solved it by ignoring .d.ts files in webpack.config.js for ts-loader, but I think it is related to the way the .d.ts files are shipped with aws-lambda-router. Maybe because your index.d.ts does not export all types that are needed externally? Could be that by having to import .d.ts files lower in the package (e.g. proxyintegration.d.ts) this triggers this error? unfortunately sqs, s3 and sns export the same name 'process' so this might not work in the current state. Any more thoughts on this? Happy to provide an example if needed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all, thank you for the library.
However, seeing warnings like this when compiling with webpack. Any ideas on how to fix?
Webpack config is like this:
package.json is this
The text was updated successfully, but these errors were encountered: