Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Node Version: 10.16.0 @ ./src/lambdas.ts, WARNING in ./node_modules/typeorm/platform/PlatformTools.js Operating System: win32 reason: enabled by default https://nextjs.org/docs/messages/webpack5 info - automatically enabled fast refresh for 1 custom loader typeerror: cannot convert undefined or null to object at function.keys () at prebuildwebpackplugin.getchangedfile (/users/davidwells/vendia/site/node_modules/prebuild-webpack-plugin/index.js:60:32) at @ ./node_modules/typeorm/driver/mongodb/typings.js at Promise._fulfill (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:643:18) Yay! By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. How is lift produced when the aircraft is going down steeply? Module not found: Error: Cant resolve mysql2 in D:\Mobile Apps\ACT-Nurse-Portal\API\ACTNextGen-Services\timeSheets\node_modules\typeorm\platform Please vote for the answer that helped you in order to help others find out which is the most helpful answer. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Find centralized, trusted content and collaborate around the technologies you use most. I still had an issue even after updating to serverless 1.51.0 and SDK 2.526.0. at AwsDeploy.tryCatcher (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\util.js:16:23) [2019-09-10T08:35:26Z] @ ./src/common/ConnPool.ts You can continue the conversation there. Sorted by: 190 Generic answer This error is caused when you call a function that expects an Object as its argument, but pass undefined or null instead, like for example Object.keys (null) Object.assign (window.UndefinedVariable, {}) @ ./node_modules/typeorm/index.js SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. at Promise._settlePromise (C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:604:18) Check out this example: import . TypeError: Cannot convert undefined or null to object nextjs, Fighting to balance identity and anonymity on the web(3) (Ep. Getting the below error message when running the sls deploy command. Node Version: 10.16.3 Docs: docs . Djai Asks: How to resolve GCP API gateway error 500? Errors occur during runtime. Plugin Version: 1.3.11 Where are these two video game songs from? @ ./node_modules/typeorm/index.js SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. Illegal assignment from List to List, Handling unprepared students as a Teaching Assistant. by Run application yarn start; Navigate to localhost:3000; Open dev tools; Expected Behavior. - Abhishek Sharma Oct 10 at 10:24 Add a comment Know someone who can answer? (based on rules / lore / novels / famous campaign streams, etc). Im seeing this today as well, with version 1.50.1. @ ./src/common/ConnPool.ts (also non-attack spells). @ ./src/controllers/timeSheets/timeSheets.ts Justification for the purpose and conditions of the intended stay was not reliable. To learn more, see our tips on writing great answers. Oops, You will need to install Grepper and log-in to perform this action. [4] ./src/controllers/timeSheets/timeSheets_lambdas.ts 26.9 kB {0} [built] @ ./node_modules/typeorm/platform/PlatformTools.js cannot convert undefined or null to object Can anyone help me identify this old computer part? Well occasionally send you account related emails. Have a question about this project? GCP API gateway => 3. validate request against firebase => 4. if request valid call cloud function v2 (cloud run) Python script is generating ID token from refresh token by using ' https://securetoken.googleapis.com/v1/token. We are working every day to make sure solveforum is one of the best. JavaScript is disabled. at features.constructor.Service [as constructor] (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\aws-sdk\lib\service.js:40:10) How to resolve TypeError: Cannot convert undefined or null to object @ ./node_modules/typeorm/index.js Is upper incomplete gamma function convex? rev2022.11.10.43025. at Http.createResourceRoutes (/Users/username/worksproject-name/node_modules/serverless-offline/dist/events/http/Http.js:57:65) useEffect ( () => { databaseService.read (uid).then ( (snapshot) => { snapshot.val () && setCards (snapshot.val ()); }); }, []); snapshot.val () undefined null . @ ./node_modules/typeorm/index.js 126:27-40 Critical dependency: the request of a dependency is an expression looks like you can use next's built in InferGetServerSideProps to infer the types from next-auth and save yourself some work.. at Function.entries () at Promise._resolveCallback (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:437:57) Why is null an object and what's the difference between null and undefined? 1. You signed in with another tab or window. Setting the resourceRoutes property to true in custom without a resources section. How to convert a string to number in TypeScript? com, Your Environment Information --------------------------- (looks like aws-sdk with me). Why Does Braking to a Complete Stop Feel Exponentially Harder Than Slowing Down? Oct 8 at 19:07 One possible cause could be Object.values (providers) . [2019-09-10T08:35:26Z] When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on stackoverflow.com. Uncaught TypeError: Cannot convert undefined or null to object at Module not found: Error: Cant resolve oracledb in D:\Mobile Apps\ACT-Nurse-Portal\API\ACTNextGen-Services\timeSheets\node_modules\typeorm\platform By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. [929] ./src/common/ConnPool.ts 7.48 kB {0} [built] Since NextAuth.js is written in Typescript, it can automatically infer the types based off the return value of getProviders() . @ ./src/controllers/timeSheets/timeSheets.ts on 06:21PM - 10 Sep 19 UTC Update: https://github.com/serverless/serverless/issues/6659, Im getting the same issue when running through my CI (gitlab) - but interestingly it runs OK locally, both using serverless@1.51.0 Bugs: github . @ ./src/common/ConnPool.ts @ ./node_modules/typeorm/driver/mongodb/typings.js @ ./node_modules/typeorm/driver/mongodb/typings.js By clicking Sign up for GitHub, you agree to our terms of service and Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. [2019-09-10T08:35:26Z] at hasOwnProperty () How do I convert a string to enum in TypeScript? @ ./src/controllers/timeSheets/timeSheets_lambdas.ts Components Version: 2.30.5, I tried add default profile to aws credential [2019-09-10T08:35:26Z] Type Error --------------------------------------------- [304] ./src/lambdas.ts 3.59 kB {0} [built] @ ./src/controllers/timeSheets/timeSheets_lambdas.ts Guitar for a patient with a spinal injury, scifi dystopian movie possibly horror elements as well from the 70s-80s the twist is that main villian and the protagonist are brothers. `Cannot convert undefined or null to object` when using - GitHub [Solved] Error resulting from ImageDataGenerator during data augmentation. at keys () @ ./node_modules/typeorm/platform/PlatformTools.js 102:27-43 System information OS: Fedora Version of Next.js: 9.3.6 Version of Node.js: 12.16 1 Answered by justincy on May 8, 2020 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\async.js:15:14) However, I cannot run the site in dev mode unless I turn off webpack 5 via the webpack5: false option. @ ./src/common/ConnPool.ts Id really appreciate it . Updates SDK to v2.526.0 [305] ./node_modules/aws-sdk/lib/aws.js 159 bytes {0} [built] I am new to Typescript and this is my first time using NextAuth so any help would be greatly appreciated! @ ./node_modules/typeorm/platform/PlatformTools.js 95:27-47 at features.constructor.optInRegionalEndpoint (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\aws-sdk\lib\services\sts.js:106:10) I can't figure out why I receive that error. In a BERT based model, why does GPU memory increase so much with batch size? What do 'they' and 'their' refer to in this paragraph? @ ./node_modules/typeorm/index.js What to throw money at when trying to level up your biking from an older, generic bicycle? at persistentRequest (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\provider\awsProvider.js:236:7) [1426] ./src/common/models.ts 4.37 kB {0} [built] at Async._drainQueues (C:\Users\ryan\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\async.js:102:5) Substituting black beans for ground beef in a meat pie. Version 1.51.0, It has something to do with aws-sdk- https://github.com/aws/aws-sdk-js/pull/2840, offline: Starting Offline: dev/us-west-2. Here is the file that is causing issue and repo Bitbucket Any help would be hugely appreciated. at AwsProvider.request (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\provider\awsProvider.js:281:39) Thank you, solveforum. [2019-09-10T08:35:26Z] Stack Trace -------------------------------------------- at Promise._settlePromiseFromHandler (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:529:17) @ ./src/common/ConnPool.ts Module not found: Error: Cant resolve sqlite3 in D:\Mobile Apps\ACT-Nurse-Portal\API\ACTNextGen-Services\timeSheets\node_modules\typeorm\platform at AwsDeploy.BbPromise.bind.then.then.then.then (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\deploy\lib\checkForChanges.js:36:21) so you might want to check your compiler version. We are using Buildkite. How can you buy a Presto card upon arrival at Toronto's Billy Bishop Airport? Do not hesitate to share your response here to help other visitors like you. A planet you can take off from, but never land back, Can you safely assume that Beholder's rays are visible and audible? at AwsProvider.getAccountInfo (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\lib\plugins\aws\provider\awsProvider.js:508:17) By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. @ ./node_modules/typeorm/driver/mongodb/typings.js at Promise._settlePromiseFromHandler (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:517:31) , TypeError: Cannot convert undefined or null to object at Promise._resolveFromExecutor (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:488:18) All of a sudden, our deploys are failing. at hasOwnProperty () at Promise._settlePromise0 (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:619:10) to your account. @ ./node_modules/typeorm/driver/mongodb/typings.js Sign up for a free GitHub account to open an issue and contact its maintainers and the community. "Uncaught TypeError: Cannot convert undefined or null to object at Function.keys". at C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\promise-queue\lib\index.js:109:18 at Promise._settlePromise (C:\Users\ejleg\AppData\Roaming\npm\node_modules\serverless\node_modules\bluebird\js\release\promise.js:574:18) "Cannot convert undefined or null to object" when using