All Issues
24,993 verified issues
How do I enable CORS?
Serverless Framework Version: 1.0.0-beta.1.1 How do I enable CORS so I can access my functions? I can't find anything in the docs, and the CORS plugin seems to not be relevant to the current version of Serverless.
[FEATURE]: Support Top-level await in `drizzle.config.ts`
Describe what you want I want to write a configuration as follows. Here, fetchDatabaseUri is a function that retrieves authentication information from AWS Secrets Manager and returns the database URI. drizzle.config.tableau.ts [code block] Currently, when I run introspect with these settings, I get the following error: [code block]
Issues with not case/fragment-normalizing file paths (macOS, Windows)
In VS Code we deal with resource `URIs` across all layers. In most cases we use `URI.toString()` to decide if a resource is equal to another resource. This assumption is not very good when we talk about file system paths because on macOS and Windows a file path should be considered equal if the paths are identical, even if the casing differs (`/some/path` === `/SOME/path`). Only Linux has a case-sensitive file system where this rule does not apply. This leads to numerous related issues: - [x] Mac: chokidar file watcher does not work if you run with wrong casing (https://github.com/Microsoft/vscode/issues/1426) - [ ] quick open and editors can show the same file multiple times (https://github.com/Microsoft/vscode/issues/17967, https://github.com/Microsoft/vscode/issues/15120, https://github.com/Microsoft/vscode/issues/18718, https://github.com/Microsoft/vscode/issues/6152, https://github.com/Microsoft/vscode/issues/16824, https://github.com/Microsoft/vscode/issues/18684, https://github.com/Microsoft/vscode/issues/19014, https://github.com/Microsoft/vscode/issues/19398)
Support `enum` in SQLite (via polyfill)
Problem Now, enum removed in sqlite Solution When develop time, It is very convenient to verify the schema.prisma with sqlite Alternatives Additional context
SignatureDoesNotMatch error
I keep on getting a A client error (SignatureDoesNotMatch) occurred when calling the ListUsers operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. I set the environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION.
Serverless Error - Function not found...
As of today (1/2/2017), when I try `serverless deploy` I get this error. [code block] Yesterday I was able to deploy my service without failure. I'm running on a Mac using serverless version 1.4. I have about 4 functions in my template. One is a lambda proxy, 2 sns topic handlers, and 1 function without an event attached to it.
Xcode 10: third-party: 'config.h' file not found
After upgrading from `0.44.3` -> `0.45.0`, XCode no longer builds for me with the following error: [code block] I am not using cocoa pods, just npm packages. Seems like some related changes have been made that may be causing this issue?
Unbound breakpoint
Issue Type: <b>Bug</b> Hi, After my VS Code updated to the latest version for some reason i can no longer place a breakpoint anywhere in my code. When i place a breakpoint, it gives the round circle without red and it says "Unbound breakpoint". This is a little bit disappointed. Below is the launch.json configuration: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Chrome - CIS5", "url": "https://localhost:3000", "webRoot": "${workspaceFolder}", "sourceMaps": true, "sourceMapPathOverrides": { "webpack:///./": "${workspaceRoot}/" } } ] } VS Code version: Code 1.47.0 (d5e9aa0227e057a60c82568bf31c04730dc15dcd, 2020-07-09T08:02:06.629Z) OS version: Windows_NT x64 10.0.17763 <details> <summary>System Info</summary> |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)| |GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: enabled<br>rasterization: enabled<br>skia_renderer: disabled_o
Feature Request: Add HEXPIRE Command
I would like to request the addition of a HEXPIPRE command to the ioredis library. The HEXPIPRE command would allow users to set an expiration time on individual fields within a hash, similar to how the EXPIRE command sets an expiration time on keys. This feature would be particularly useful for scenarios where certain fields within a hash need to expire independently of the hash itself. Consider an order management system where each user's orders are stored as a hash with multiple fields representing different orders. Each order needs to have its own expiration time to ensure that old or unfulfilled orders are automatically removed after a certain period. The HEXPIPRE command would allow us to set an expiration time on each order field without affecting other orders or the main hash.
Mismatch between `createFile(file: File)` and `createReadStream` in docs
Describe the bug The typings were updated such that the signature is `createFile(file: File)`, but the docs example shows a `ReadStream` being provided. `File` is not available in Node. What is meant to be done here? Is this a typo, should be `File | ReadStream`? To Reproduce Try to pass a `ReadStream` to `createFile()`, see type error. Code snippets _No response_ OS N/A Node version latest Library version latest
yogakit/yogakit.modulemap' not found React Native
Description I create a new app using react native. When I try to run the app within an iOS emulator using Xcode I get the following error and the app doesn't run. fatal error: module map file '/Users/rebekah/Library/Developer/Xcode/DerivedData/example-feduelzeswwgfqdrghxcxxfxavuz/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found I have tried to google this but have been unable to find a way to fix it, is there any way this can be fixed? React Native version: System: OS: macOS 10.15.6 CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz Memory: 23.01 MB / 4.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 13.7.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.5 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 29 Build Tools: 29.0.2 Android NDK: Not Found IDEs: Android Studio: Not Found Xcode: 11.6/11E708 - /usr/bin/xcodebuild Languages: Java: 1.8.0_45 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: react-native: Not Found
Multiple Next apps on single domain will collide
Next uses routes like `/_next` and `/static` by default. If you wanted to run multiple different Next apps on the same domain, they would collide with each other. Can these paths be made configurable?
Prettier 2.0 – 2.0 2020
We already have a Prettier 2.0 issue – #3503 – but tell you what: Time’s up for that one. As of this writing, Node.js 8 is scheduled to expire early on December 31, 2019. And we still support Node.js 4. In two months we will be 6 versions behind! Supporting Node.js 4 and Node.js 6 has been a real hassle lately as our dependencies (rightfully!) has stopped supporting them. We have spent a lot of unnecessary time getting tests to pass in Node.js 4. So here’s my suggestion for a 2.0 of a Prettier 2.0 issue: The main focus should be dropping support for unsupported Node.js versions. Let’s aim for releasing Prettier 2.0 early in January 2020 with support for only Node.js 10+. Apart from that we could do some easy breaking changes: - Change the default for `trailingComma` to `es5`, as discussed in the original Prettier 2.0 thread. - Remove deprecated stuff. When that is done – if we have time, we could do more things. We’ll see. For example, it would be really nice addressing #5588 (making all unsafe template literal formatting opt-in). I also have a suggestion for lots of improvements for Prettier’s CLI and API, but I’ll open a separate issue for that. /cc @prettier/core @brodybits @fisker
{ EntityMetadataNotFound: No metadata for "User" was found.
Hello, I'm trying to setup a new project using the latest release and the ormconfig.yml options. I'm following the documentation and pointing it to the `src/entity/*.js` location, but i keep getting the following error when running my server.spec.ts file through mocha: [code block] I've posted a sample repo here: https://github.com/rightisleft/public-error https://github.com/rightisleft/public-error/blob/master/server/test/server.spec.ts#L29 I've been reading the documentation at https://github.com/typeorm/typeorm/issues/420 but have been unable to resolve the problem. Please advise. Checklist: Using reflect-metadata in spec Using "emitDecoratorMetadata": true, "experimentalDecorators": true in tsconfig.json Using 'entries' delcaration in ormconfig.yml
Efficiently create many records
We need a way to efficiently insert many rows of data. For small amounts of data, a simple batch API might be sufficient, as the database can handle all the operations in a short time. This could either be exposed through operations similar to our nested `create` API as described below, or through a new Batch API as described in https://github.com/prisma/prisma-client-js/issues/667. For large amounts of data, we need to support breaking the large number of create operations into smaller batches. In order to optimise throughput, you need to balance two things: provide large enough work packages such that network latency doesn't dominate the actual work, and keep the work packages small enough to not overwhelm the database. This could be exposed through a batch API with configurable batch size, or through a streaming API with buffering support. Original issue I think is quite common the need of having to create or upsert many records on a database at the same time, at least is a feature I see in many other ORMs. Right now is posible to create many records using a nested write like this [code block] But sometimes you just want to create many records, in this case the only thing I managed to find to accomplish is by doing this [code block] This with 2 records works fine, but as soon as you need to create 1000 doesn't seems right to fire 1000 promises. Maybe I'm missing something and there is a good reason for a feature like this to not be available, or maybe is already pl
react-native run-ios can not find any simulator
Environment React Native Environment Info: System: OS: macOS 10.14.2 CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz Memory: 6.76 GB / 32.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.15.0 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 IDEs: Android Studio: 3.1 AI-173.4819257 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.6.3 => 16.6.3 react-native: 0.57.8 => 0.57.8 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7 Description I have been facing an issue where 'react-native run-ios' can not start, regardless of the simulator I add to the --simulator argument. XCode has the correct location for the 'command line tools' I am always getting the error: Could not find iPhone X simulator Error: Could not find iPhone X simulator at resolve (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise (<anonymous>) at runOnSimulator (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10) at Object.runIOS [as func] (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12) at Promise.resolve.then (/Users/eric/.../swim/node_modules/r
GitHub Actions step is hanging until timeout
Describe the bug At some point, a GitHub Actions step stops producing output and hangs until the workflow is terminated by timeout. You can see the output stops being produced if you actively watch the job output in the browser. If you try opening an already hanging job in the browser, the step output is not displayed at all: the ">" sign next to the step is not visible and the icon next to is is a spinning yellow circle. The output becomes available once the workflow is terminated. Here is an example of one such run. Here is the log with timestamps: boost_log_gha_hang.txt.gz I'm sure the processes running in the GHA step are not hanging (this is just a C++ compilation process, which does succeed normally). This problem seems to be not unique to my setup, there are other reports as well. In my case it happens most often with macos-10.15 runner, but I've also seen it happen with ubuntu-20.04 runner. To Reproduce At the moment, this reproduces quite reliably by running the workflow on my Boost.Log repository (git revision boostorg/log@2f058c6d8c3867471d0973b6f57127b5076a4f7f). I intend to try working around the problem (e.g. by disabling the offending runner), so this may not stay reproducible in later revisions. Expected behavior The runner should not hang. Runner Version and Platform I'm using the free runners hosted by GitHub.
Indent script and style tags content in *.vue files
Prettier 1.10.2 Playground link When I have a Vue.js file: [code block] How do I stop prettier changing the indentation to: [code block]
Unable to get JSON output from `aws s3 ls` command
Output from `aws s3 ls` is always returned as text regardless of the value of the `--output` parameter.
Please optimize the size of libs
Could you optimize the size of libs? We have limit ~ 50 KB per route on 3G mobile networks. :-/ Check out the video Measure Time to Interactive. The Cost Of JavaScript is high. - 27.8 KB / gz 9.3 KB https://cdn.jsdelivr.net/npm/firebase@4.6.2/firebase-app.min.js - 268 KB / gz 69.4 KB https://cdn.jsdelivr.net/npm/firebase@4.6.2/firebase-firestore.min.js - 178.3 KB / gz 46.4 KB https://cdn.jsdelivr.net/npm/firebase@4.6.2/firebase-database.min.js - 33.9 KB / gz 10.5 KB https://cdn.jsdelivr.net/npm/firebase@4.6.2/firebase-storage.min.js - 27,8 KB / gz 5.7 KB https://cdn.jsdelivr.net/npm/firebase@4.6.2/firebase-messaging.min.js - 137.5 KB / gz 43.8 KB https://cdn.jsdelivr.net/npm/firebase@4.6.2/firebase-auth.min.js