Skip to content
New issue

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

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

Already on GitHub? # to your account

WARNING: More than one matching handlers found for... #189

Closed
RandomEngy opened this issue Jan 18, 2021 · 3 comments
Closed

WARNING: More than one matching handlers found for... #189

RandomEngy opened this issue Jan 18, 2021 · 3 comments

Comments

@RandomEngy
Copy link

I'm getting this warning when deploying:

WARNING: More than one matching handlers found for 'built/methods/registerDevice'. Using 'built/methods/registerDevice.js'.

I'm guessing this is because Typescript has included registerDevice.js and registerDevice.js.map.

serverless-webpack added a feature to exclude files via config, but I cannot use this, as custom/bundle and custom/webpack config sections are not compatible.

How do I get rid of this warning?

@karl-run
Copy link

karl-run commented Mar 1, 2021

I'm also seeing this warning because I have handler.ts and handler.test.ts. Same as this issue in serverless-webpack. Which lead to this feature request which in turn lead to the PR linked in OPs issue.

Being able to do something like this:

custom:
  bundle:
    excludeFiles: '**/*.test.ts'

Would be nice.

@jayair
Copy link
Member

jayair commented Jul 18, 2021

Closed in #245

@jayair jayair closed this as completed Jul 18, 2021
@RandomEngy
Copy link
Author

RandomEngy commented Nov 6, 2022

Thanks, this is handy, but for my project Typescript generates .d.ts files for type information as well as .map source maps. I would need access to the excludeRegex option from serverless-webpack to make this work. But currently it's being hard-coded to /bundle_stats\.(html|json)$/

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

No branches or pull requests

3 participants