All Issues
24,993 verified issues
[Bug] next/link is not calling the server for subsequent navigations on dynamic routes
Describe the feature you'd like to request In the documentation it is said that the conditions for hard navigation are : - when navigating between dynamic segments - When navigating between two different group layouts (ex: from `(groupA)/layout` to `(groupB)/layout` ) I'd like to suggest also adding hard navigation for segments marked with `dynamic='force-dynamic'` or when using dynamic functions and even when using fetch with `cache: 'no-store'`. In the docs you said that using these configurations is like using `getServerSideProps()` in the pages directory, but it does not behave the same between navigations which is quite confusing. Use cases for this feature could be these : - this app that only store pokemon data in cookies (Live here and source here) - this simple case for an app that generate a random number each time : ckblitz.com/edit/nextjs-sxijav?file=package.json,app%2Fnested%2Fpage.tsx Describe the solution you'd like The solution i propose is to consider hard navigation for these cases : - When navigating to a page marked with `dynamic='force-dynamic'`, next should always do a hard navigation - When navigating to a page using dynamic functions `headers()` and `cookies()`, next should always do a hard navigation - When navigating to a page using `fetch` with `cache: 'no-store'`, next should always do a hard navigation, or at least next should always refetch the data - When navigating to a page using either `fetch` with `next: { revalidate: n_seconds
[NEXT-841] FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
What version of Next.js are you using? 12.0.7 What version of Node.js are you using? 16.6.2 What browser are you using? Chrome / safari What operating system are you using? Mac os How are you deploying your application? other Describe the Bug We have a monorepo with nx wherein we are using next for ssr We have been on next 11 and wanted to move to the next 12 with swc On doing so and making the neccessary changes, our app crashes with We have tried adding more memory but we feel that the issue lies elsewhere [code block] Expected Behavior Should work To Reproduce - upgrade to next 12.0.7 / 12.0.4 and try running the dev server <sub>NEXT-841</sub>
Discussion: (Reflective) Type Model
Hi all, We currently have a AST model for TypeScript which is useful for compilers, editors, and linters. However, it would be extremely useful to have a type model, a la Java's reflective model. There are a huge number of use-cases supporting this, but I will list a few here: - I have a REST interface and I define a data model for it as a TypeScript interface. I use this interface for the function definition of the REST implementation, but then use the type model to validate the input at runtime. - I have a service model that abstracts an interface for some system (database, or application, etc.). I define this as a TypeScript interface (maybe with some decorators as meta-data), and have a generator library that extracts this information to either generate code - or create a runtime implementation - that actually implements the service. - I have an injection (DI) system. I use injection decorators on class properties/constructor parameters, and use the type model to reflectively wire the correct instance. A good example of what could be achieved with this, is something like the Spring platform for Java where our applications are built as decorated components and most of the boilerplate code is abstracted away by the platform thanks to reflection and decorators. I have a "first stab" at implementing such a thing: typescript-schema. It's not feature complete and the design isn't finished either. But hopefully it gives a feel for what a reflective model could look like. Is
Allow for floating windows
Hi, I suggest floating windows option for: - Terminal - Debug console - Problems - Output Eventually: - tabs - Explorer / search / debug / git / extensions This way we could take advantage of large screen space and / or multi monitors. Having to constantly switch between the various windows is not optimum working flow.
Duplicated letters when autoCapitalize="characters" on android
Description When trying to implement an upper case only input, adding `autoCapitalize="characters"` seems to work on Android by setting the keyboard to be upper case by default. One can hit the shift key and then type a lower case letter. To ensure that we only let the user enter (and see) upper case letters, I thought that I might be able to handle it by ensuring that when we update the react state of the component we capture the text in upper case. By using a toUpperCase on top of what is a pretty standard state update cycle (i.e. a very similar update method ala the examples at https://facebook.github.io/react-native/releases/next/docs/textinput.html ), this saves the input into the state, uppercased, ready for the next render cycle. (I'm not concerned about the dangers of toUpperCase at this point.) Unfortunately, the behaviour is a bit strange when you start typing both upper and lowercase letters, where you start getting repeated letters, e.g. if I type _AbC_, I will end up with _ABABC_, _AbcdE_ I get _ABABCDABABCDE_. Reproduction I created an example app here: https://rnplay.org/apps/t-gBOA Note that the behaviour seems fine on the iOS simulator, but is 'wrong' on the android simulator. or see the component below: [code block] Solution I suspect that there's something going awry with the syncing of state between the react state and the state of the underlying components, quite possibly some case-ignoring checks are being in some places, but not others. Addit
Add support for PlanetScale serverless driver
Problem PlanetScale offers a serverless driver for environments like Cloudflare Workers and Deno Deploy, but Prisma does not have support for it. Suggested solution Adding a PlanetScale serverless driver to Prisma would solve this problem. I don't know the internals of Prisma, but PlanetScale's serverless driver is MySQL-compatible, just over HTTP. I imagine one could potentially reuse code from Prisma's existing MySQL driver to achieve this. Alternatives You could use the Prisma Data Proxy with PlanetScale, but it's an additional layer to jump through and adds an additional service to worry about.
Generating migrations with cli
Issue Description Expected Behavior Migrations get generated using the cli Actual Behavior I am following the documentation outlined here https://typeorm.io/migrations and I feel like the documentation is way different then what is actually happening in the cli. I have tried just running the following command: `typeorm migration:generate -n PostRefactoring` When I run this command I get the following: `Not enough non-option arguments: got 0, need at least 1` So then I modify the command to something like this: `Missing required argument: dataSource` So then from there I add the datasource since that is what it is asking for: `npx typeorm migration:generate test -d app-data-source.ts` (I found the -d somewhere online while investigating this issue) But once I run that command I get the following error: `File must contain a TypeScript / JavaScript code and export a DataSource instance.` I have been trying to get this to work for days and I am about ready to throw the towl in and use a different ORM...which I don't want to do. I know that everything is working fine because I can start up the app and the app connects to the database and creates rows in the database. So it is just something with the cli and trying to generate the migrations. Here is what is in my app-data-source.ts file: [code block] This is the contents of my app.ts file: [code block] All these files were setup using the instructions outlined in the express typeorm documentation: Example with
Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). When Upgrading To React Native v0.70
Description Upgrade from 0.68.1 to 0.70.0. Builds fine in Xcode. Launches Simulator. Splash screen for app appears. and then it crashes with the error: ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter. A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., js engine: hermes Version 0.70.0 Output of `npx react-native info` ystem: OS: macOS 12.3.1 CPU: (4) x64 Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz Memory: 1.20 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.15.0 - /usr/local/bin/node Yarn: Not Found npm: 8.5.5 - /usr/local/bin/npm Watchman: 2022.03.21.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: N
[NEXT-1147] Scroll position is reset when search params are updated
Verify canary release - [X] I verified that the issue exists in the latest Next.js canary release Provide environment information [code block] Link to the code that reproduces this issue https://codesandbox.io/p/sandbox/modest-gould-h4nlvd?file=%2Fapp%2Fpage.tsx&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A7%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A7%7D%5D To Reproduce Click the counter to update client state. Scroll a little. Click the second button to update search params. The client state is preserved, but the scroll position is lost. Describe the Bug Context In Next <= 13.2.4, updating search params was working as intended : client state was kept, and scroll position was kept too. In Next 13.2.5, a regression made the client components unmount and remount when search params were updated. @feedthejim fixed that unmounting in https://github.com/vercel/next.js/pull/49047 (it's testable on `13.3.5-canary.2`), but there is still an issue now: scroll position is lost on search params updates. Problem: persisting state in search params is very important with the App router - that's a clean way for client components to request updated data from the RSC. Reproduction Codesandbox Here's a codesandbox reproducing the bug: https://codesandbox.io/p/sandbox/modest-gould-h4nlvd?file=%2Fapp%2Fpage.tsx&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A7%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A7%7D%5D In video https://user-
Vscode, have you collaborated with China?
่ฏทๅคงๅฎถไธ่ฆๅจ่ฟ้ๅๆ ๅ ณ็issueไบ๏ผ่ฟๆฏๅฏนๅผๅ่ ็้ชๆฐใ ๆไปฌๅจ่ฟ้็issueๅทฒ็ป็ปๅผๅ่ ้ ๆไบ่ฏธๅค้บป็ฆ๏ผ่ฏทๅคงๅฎถไธ่ฆๅๅปๆไบคissueไบใ ๆไนๅพ็่งฃๅคงๅฎถ็ๅฟๆ ๏ผๅฝๅ็ๅฐ่ฟ็ฉๆๅฟ็ๆถๅๆไนๆฏๅพ้ๆๅพไธ็ฝ็๏ผๆฏ็ซ่ฟ็ฉๆๅฐฑๅ ไธชvipๅฅ็ฎ็ถๅๅฐฑๅฎฃ็งฐๅฝไบง่ช็ ๏ผไฝ ่ฏด่ฟไบไธๅฆไฟกๆๆฏ็งฆๅง็ใ ็กฎๅฎๅฝไบงcec-ideๅพๅๅพๅฐฑๆฏไธชๅฅๅฃณ๏ผไธขๅฝไบบ็่ธใไฝๆไปฌๅจ่ฟ้ไนฑๆไบคissueไธไนๆฏๅพไธข่ธ็ไบๆ ๅ๏ผ ่ฟ้ๆฏGitHub๏ผไธๆฏQQ็พคๆ่ ่ดดๅงๅๅพๅบใ Please everyone do not post irrelevant issues here, this is harassment of developers. Our issue here has caused a lot of trouble for developers, please do not submit issues here. I also understand everyone's mood, when I first saw this thing, I was very shocked and angry, too. This thing added a vip and then claimed that the domestic self-research, how ridiculous and absurd this is. It is true that cec-ide is a piece of shit. But isn't it impolite for us to bother developers here? This is GitHub, not a dump. *** A Chinese IDE (which is called "CEC-IDE") claimed that they developed a new IDE by themselves: I downloaded this software and installed it, and it looked so similar to vscode: I read the CEC-IDE official document, it seems to need paying to use. I have carefully read their relevant documents and reviewed their software, but I did not find any statement similar to "open source following the MIT license".
Design a new vector file format
Latest update: https://github.com/flutter/flutter/issues/1831#issuecomment-1012654670 ---- From earlier discussion, some important considerations are: - We don't want full SVG support. There is too much in the spec that is expensive, heavyweight, and/or duplicates what we already have in Flutter. - We should emphasize in our supported format those operations are effective/efficient/optimized in our graphics engine (Skia). - We may want to process the format at build time rather than support a full run-time interpreter.
Environment Secrets are not available on Reusable Workflow / Workflow Templates
Describe the bug obs: this feature works as designed, but I believe it could be improved. Problem: Passing an environment containing secrets to a reusable workflow is not enough to have the environment secrets avaiable. Example: In a repository, there is an environment called "myenv", which contains a single secret called "MY_SECRET". In this repository, there is also a workflow calling a reusable workflow. This is the reusable workflow [code block]` And this is the workflow [code block]` When running this workflow, `MY_SECRET` isn't available. I see something like this in the logs: [code block]` instead of this [code block]` In order to make `MY_SECRET` available in the reusable workflow, I must explicitly write it in the workflow caller, like so: [code block]` Why can't the reusable workflow load all of the environment secrets automatically using just the environment's name? Is there a reason for not doing it? In this repo you can find all of my experiments: https://github.com/AllanOricil/workflow-template-bug Expected behavior "Deployment Environment" secrets should be available in reusable workflows What's not working? "Deployment Environment" secrets are not available in reusable workflows Job Log Output [code block]`
Maximize current file/tab/editor
- VSCode Version: 1.7.2 - OS Version: Linux Mint I've looked a bit but couldn't find a solution. Is there a way to toggle maximize (full screen) only the current tab/file? Even if there is split editor, it shouldn't display it, only the current file/tab. Thanks
"__nw_connection_get_connected_socket_block_invoke Connection has no connected handler" in logs
Workaround _Edit by @hramos, maintainer:_ Several solutions have been presented in this thread: `OS_ACTIVITY_MODE` @HADB proposed: 1. Open Xcode. 2. Open Product menu. 3. Select Edit Scheme... 4. Add the following under Environment Variables: Name: `OS_ACTIVITY_MODE` Value: `disable` 5. Run your app again Using `react-devtools` Alternatively, ensure `react-devtools` is installed on your system. Resolution This is a known issue in the iOS Simulator. The issue will remain open to increase visibility. We are limited comments on this thread to core contributors. Pull requests with proposed fixes are welcome. Original Issue ENV RN 0.32 iOS 10, iPhone 6 Plus Problem The console of Xcode continue print "__nw_connection_get_connected_socket_block_invoke 6 Connection has no connected handler". Screen
Unable to install aws-cli via pip - package dependency broke
Describe the bug $ pip3 install awscli Collecting awscli Obtaining dependency information for awscli from https://files.pythonhosted.org/packages/43/9c/bf16d97f5de8aa4f9171c6c82bad0b4179921ddca5066ba980358da0e9a5/awscli-1.29.3-py3-none-any.whl.metadata Downloading awscli-1.29.3-py3-none-any.whl.metadata (11 kB) Collecting botocore==1.31.3 (from awscli) Obtaining dependency information for botocore==1.31.3 from https://files.pythonhosted.org/packages/b0/f0/5755508b3305534cd4cf2a8a82bbbe42ee9d66fd2688be5ff3dfb85e9a99/botocore-1.31.3-py3-none-any.whl.metadata Downloading botocore-1.31.3-py3-none-any.whl.metadata (5.9 kB) Collecting docutils<0.17,>=0.10 (from awscli) Downloading docutils-0.16-py2.py3-none-any.whl (548 kB) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 548.2/548.2 kB 34.8 MB/s eta 0:00:00 Collecting s3transfer<0.7.0,>=0.6.0 (from awscli) Downloading s3transfer-0.6.1-py3-none-any.whl (79 kB) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 79.8/79.8 kB 12.2 MB/s eta 0:00:00 Collecting PyYAML<5.5,>=3.10 (from awscli) Downloading PyYAML-5.4.1.tar.gz (175 kB) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 175.1/175.1 kB 24.9 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error ร Getting requirements to build wheel did not run successfully.
Configuring one provider with a dynamic attribute from another (was: depends_on for providers)
This issue was inspired by this question on Google Groups. > I've got some Terraform code that doesn't work because the EC2 instance running the Docker daemon doesn't exist yet so I get "\* Error pinging Docker server: Get http://${aws_instance.docker.public_ip}:2375/_ping: dial tcp: lookup ${aws_instance.docker.public_ip}: no such host" if I run plan or apply. There are providers (docker and consul - theoretically also openstack but that's a stretch) that can be implemented with Terraform itself using other providers like AWS; if there are other resources in a Terraform deployment that use the (docker or consul) provider they cannot be provisioned or managed in any way until and unless the other resources that implement the docker server or consul cluster have been successfully provisioned. If there were a `depends_on` clause for providers like docker and consul, this kind of dependency could be managed automatically. In the absence of this, it may be possible to add `depends_on` clauses for all the resources using the docker or consul provider, but that does not fully address the problem as Terraform will attempt (and fail, if they are not already provisioned) to discover the state of the docker/consul resources during the planning stage, long before it has completed the computation of dependencies. Multiple plan/apply runs may be able to resolve that specific problem, but having a `depends_on` clause for providers would allow everything to be managed in a single pass
[FEATURE]: Support PostgreSQL's Row Level Security (RLS)
Describe want to want Supabase is really nicely using Row Level Secruity for granular authorization rules. ๐ Here's the link to their docs: https://supabase.com/docs/guides/auth/row-level-security I'd love to switch from Supabase JS SDK to drizzle based on all the features, but one limitation right now is that it seems it does not support row level secruity. Would love if you would consider adding this feature if also other users would find it helpful!
[NEXT-1192] Failed to find font override - next/font/google
Verify canary release - [X] I verified that the issue exists in the latest Next.js canary release Provide environment information [code block] Which area(s) of Next.js are affected? (leave empty if unsure) Font optimization (@next/font) Link to the code that reproduces this issue https://github.com/maxencerb/next-font-bug To Reproduce [code block] [code block] Describe the Bug Output Output works as expected Console Output [code block] Explaination All fallback font metrics from google are loaded from `next/font/google/get-fallback-font-override-metrics.ts` where we can see the following method and doc : [code block] So I think there might be a fix but I don't really know how to implement it. I tried looking at the local font optimization code. Maybe someone can either find the solution to calculate the values with fontkit or at least update the json file under `next/src/server/google-font-metrics.json` and tell how to find those values. Expected Behavior Find the font fallback for any google font Which browser are you using? (if relevant) _No response_ How are you deploying your application? (if relevant) _No response_ <sub>NEXT-1192</sub>
Feature request: fetch based adapter
I didn't see an issue for this (opened or closed), but if this is a duplicate just close it ๐ธ . Are there any plans for a `fetch` based adapter for axios? I thought I'd check and see if this has been discussed, and if not, if you all would be open to a feature request (or I'm happy to work on it and PR it). Reasons for adding a `fetch` adapter are basically for the same reasons you'd use fetch: - Support for service workers - Integration with Cache API - natively promise based, so axios can become a thinner library - response streaming - probably more that I'm not even thinking of right now Reasons you'd still want axios wrapping fetch for you (because some people feel like you don't need a lib over fetch): - fetch is low level. Using plain fetch in an app that is 99% GET/PUT/POST against a JSON API means lots of duplicate boilerplate code which axios can abstract - request/response interceptors - probably more that I'm not even thinking of right now :smile:
`createMany()` should return the created records
Initially brought up here: https://github.com/prisma/prisma/issues/4998#issuecomment-787206842 Problem The fact that the `createMany` API does not return the created records (which should be possible for Postgres) makes it difficult/impossible to use in some circumstances, meaning we must fall back to raw SQL. Here's an example. Let's say I have these two tables [code block] Let's say I want to create many posts and many comments. The data to be created could be represented like so: `Array<{post: PostData, comments: Array<CommentData>}>`. If `createMany` returned the created data, I could do something like this: [code block] However, since `createMany` does not return the created data, it is difficult to create many posts and then create many comments linked to those posts in an efficient manner. The remaining options are to create records one-by-one or use raw SQL. Using a combination of `createMany` and `findMany` is possible if you manually specify IDs, but does not work if you rely on Postgres (or some other DB) to generate IDs by default. Suggested solution `createMany` should return an array of created records (like how `create` returns the single created record). Alternatives Use `create` (inefficient if creating many records) Use raw SQL (efficient but inconvenient) * Use `createMany` + `findMany` (only works if you manually specify IDs, and also less efficient than if `createMany` returned created records) Additional context Personally, I've used raw