Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe an error when using middy library #373

Open
JuanvictorO opened this issue Jul 2, 2024 · 0 comments
Open

Maybe an error when using middy library #373

JuanvictorO opened this issue Jul 2, 2024 · 0 comments

Comments

@JuanvictorO
Copy link

ERROR in D:/Projetos/serverless-bootcamp/serverless-nodejs-starter/node_modules/@middy/http-event-normalizer/index.js 4:39
Module parse failed: Unexpected token (4:39)
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
| const httpEventNormalizerMiddlewareBefore = async (request)=>{
| const { event } = request;

    const version = event.version ?? '1.0';

| const isHttpEvent = isVersionHttpEvent[version]?.(event);
| if (!isHttpEvent) {
@ D:/Projetos/serverless-bootcamp/serverless-nodejs-starter/src/lib/commomMiddleware.js 3:0-63 15:76-95
@ D:/Projetos/serverless-bootcamp/serverless-nodejs-starter/src/handlers/getAuctions.js

I don't know how to fix this and I searched everywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant