-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hello! I'm trying to use serverless-bundle for typescript in my project. I cloned the typescript starter project. This project is part of a workspace, and it extends a base tsconfig.
I can run tsc
just fine, but when I try to invoke a serverless function or start the server, I get a cryptic error that I've been trying to fix for hours now:
sls invoke local --function hello
serverless-bundle: CommonJS, ES3, or ES5 are not supported
Serverless: Bundling with Webpack...
ERROR in /Users/{user}/work/next/packages/cloud/lincoln/new-new-api/src/handler.ts
Module build failed (from /Users/{user}/work/next/node_modules/ts-loader/index.js):
TypeError: Cannot read property 'tap' of undefined
at makeAssetsCallback (/Users/{user}/work/next/node_modules/ts-loader/dist/instances.js:218:50)
at addAssetHooks (/Users/{user}/work/next/node_modules/ts-loader/dist/instances.js:224:9)
at Object.initializeInstance (/Users/{user}/work/next/node_modules/ts-loader/dist/instances.js:266:13)
at successLoader (/Users/{user}/work/next/node_modules/ts-loader/dist/index.js:26:17)
at Object.loader (/Users/{user}/work/next/node_modules/ts-loader/dist/index.js:23:5)
Error ---------------------------------------------------
Error: Webpack compilation error, see stats above
at /Users/{user}/work/next/node_modules/serverless-bundle/node_modules/serverless-webpack/lib/compile.js:32:15
I can find no leads in debugging as to what I need to fix. Any suggestions? I dug into node_modules and the undefined object attempting to access a .tap function is compilation.hooks.afterProcessAssets
.
Metadata
Metadata
Assignees
Labels
No labels