# Expected configurations
SalzoTech
Tech Notes
miércoles, 11 de enero de 2023
Azure DevOps: Sample Android AAB build and Play Store publish
jueves, 17 de noviembre de 2022
React Native run-android notes
- runAndroid:
- ...logger.info('JS server already running.')...
- buildAndRun
- cmd = process.platform.startsWith('win') ? 'gradlew.bat' : './gradlew';
- runOnAllDevices
- ...logger.info('Installing the app...');...
- tryLaunchAppOnDevice
- ...const {appId, appIdSuffix} = args;...
- ...shell am start -n...
viernes, 4 de noviembre de 2022
capacitor-community / text-to-speech: "Not yet initialized or not available on this device"
It happened to me only on the emulator. On a real device, it worked.
miércoles, 1 de junio de 2022
Re: How to bundle and use custom web fonts in SPFx projects (Prod mode)
SPFx: 1.14/1.15.0-rc.0
I followed How to bundle and use custom web fonts in SPFx projects but didn't work for me in "Prod mode" (gulp bundle --ship && gulp package-solution --ship). It worked for me at "Dev time" (gulp serve in Workbench or in a Sharepoint page in "full trust client-side solution" mode, no --ship).
To make it work I had to change the outputPath value (in fontLoaderConfig) from 'fonts/' to '/'.
I noticed that the runtime font references were like: https://[mySite].sharepoint.com/sites/appcatalog/ClientSideAssets/[GUID]/fonts/[myFont].woff2 but visiting https://[mySite].sharepoint.com/sites/appcatalog/ClientSideAssets/[GUID], all the assets were at the same level, like https://[mySite].sharepoint.com/sites/appcatalog/ClientSideAssets/[GUID]/[myFont].woff2.
jueves, 28 de abril de 2022
Runtime.UserCodeSyntaxError: SyntaxError: Unexpected end of JSON input when deploying Node Lambda using serverless
Do you have a valid .env file? :)
jueves, 17 de febrero de 2022
AWS SES MessageRejected 400 Bad Request
Are you on the SES sandbox and trying to send messages to an email address different than the verified one? Or to a domain different than the verified one? 😛
martes, 5 de octubre de 2021
MODULE_NOT_FOUND using New Relic with Nest (NestJS) 8
When adding the newrelic.js file in the root of the NestJS project, and then building it and running it in prod mode:
> node dist/main
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/.../apps/backend/dist/main'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
In this case, tsc compiles just the newrelic.js file in your dist folder.
Move the newrelic.js to the same directory as your main.ts file (normally src/).
Complete installation instructions: https://discuss.newrelic.com/t/new-relic-for-nestjs/91812. I didn't follow all those for Nest 8 though. In my case:
- Same.
- Same.
- Same.
- Same. It didn't work with import _ from 'newrelic';. In that way, it got stripped from the compiled JS.
- 6. 7. I didn't need to. The newrelic.js automatically ended up in the dist/ folder.