Comments (5)
any update?
from serverless-plugin-typescript.
still getting error
❯ sls deploy --verbose
Running "serverless" from node_modules
Deploying pdf-api to stage dev (ap-southeast-1)
Packaging
Compiling with Typescript...
Using local tsconfig.json - tsconfig.json
✖ Stack pdf-api-dev failed to deploy (0s)
Environment: darwin, node 12.16.3, framework 3.22.0 (local) 3.22.0v (global), plugin 6.2.2, SDK 4.3.2
Credentials: Local, "default" profile
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
TypeError: Cannot read property 'split' of undefined
at /Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/typescript.js:57:33
at Array.map (<anonymous>)
at Object.extractFileNames (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/typescript.js:56:10)
at TypeScriptPlugin.get rootFileNames [as rootFileNames] (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:102:27)
at TypeScriptPlugin.<anonymous> (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:159:59)
at Generator.next (<anonymous>)
at /Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:4:12)
at TypeScriptPlugin.compileTs (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:143:16)
at TypeScriptPlugin.<anonymous> (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:58:28)
at Generator.next (<anonymous>)
at /Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:4:12)
at before:package:createDeploymentArtifacts (/Users/rijwan/code/automate-pdf-api/node_modules/serverless-plugin-typescript/dist/src/index.js:57:63)
at PluginManager.runHooks (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/classes/plugin-manager.js:530:15)
at PluginManager.invoke (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/classes/plugin-manager.js:563:20)
at async PluginManager.spawn (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
at async before:deploy:deploy (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/plugins/deploy.js:40:11)
at async PluginManager.runHooks (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
at async PluginManager.invoke (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
at async PluginManager.run (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
at async Serverless.run (/Users/rijwan/code/automate-pdf-api/node_modules/serverless/lib/serverless.js:174:5)
at async /Users/rijwan/code/automate-pdf-api/node_modules/serverless/scripts/serverless.js:771:9
2 deprecations found: run 'serverless doctor' for more details
from serverless-plugin-typescript.
Seems to me node 17 doesn't supported by aws
from serverless-plugin-typescript.
I've run into the same issue, lambda fails when you try to use any import..
( Node 17 is not in the picture at all. I've tried it with 12 and 14. ) Tried both the 2.1.4 and the 2.1.2 version of the plugin...
Switched to serverless-esbuild
and the issue went away.
from serverless-plugin-typescript.
@mdrijwan Running into this myself now, did you ever have any luck resolving this?
from serverless-plugin-typescript.
Related Issues (20)
- Cannot locate handler error message is not sufficient enough HOT 1
- Feat. Add option for not compiling with tsc
- Use custom typescript compiler
- Using multiple runtimes and explicit artifact, receive Cannot access package artifact error HOT 4
- Never throws type errors HOT 1
- Example is missing type information HOT 1
- Serverless Offline does not compiles tsx files
- Uploading source maps to sentry during build HOT 2
- [BUG] This plugin borks something with package artifacts HOT 2
- Error [ERR_MODULE_NOT_FOUND]: Cannot find module HOT 4
- Fix for only one function deploy
- [BUG] Not able to deploy with serverless v2. HOT 2
- ESM Support for Node 18-plus? (.mts -> .mjs) HOT 1
- [BUG - Since 2.1.5] Compilation of tsconfig include files does not honour tsConfigFileLocation in serverless
- Throws EISDIR error when running deploy HOT 1
- Add support to new AWS Lambda Runtime nodejs20.x
- How to Trigger `.build` Directory Recompile / Watch with non *.ts Files HOT 2
- Package 'individually=true' not working when setup at function level and 'false' at service level HOT 7
- Old Globby v10 importing @types/glob and @types/minimatch causing build error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-plugin-typescript.